Browse Source

Added property IsEmpty to Block.

pull/220/merge
marcos henrich 12 years ago committed by triton
parent
commit
c061cf5be4
  1. 11
      src/Generator/Generators/Template.cs

11
src/Generator/Generators/Template.cs

@ -165,6 +165,17 @@ namespace CppSharp.Generators @@ -165,6 +165,17 @@ namespace CppSharp.Generators
return builder.ToString();
}
public bool IsEmpty
{
get
{
if (Blocks.Any(block => !block.IsEmpty))
return false;
return string.IsNullOrEmpty(Text.ToString());
}
}
#region ITextGenerator implementation
public uint Indent { get { return Text.Indent; } }

Loading…
Cancel
Save