Exemple #1
0
 public virtual void Decompile(TextBuilder result)
 {
     result.Indent();
     result.Append("var");
     if (_flags.HasFlag("Edit"))
     {
         result.Append("(");
         if (_category != null && _category.Name != _export.Parent.ObjectName)
         {
             result.Append(_category.Name);
         }
         result.Append(")");
     }
     _flags.Except("Edit", "Net").Each(f => result.Append(" " + f.ToLower()));
     result.Append(" ").Append(GetPropertyType()).Append(" ");
     result.Append(_export.ObjectName);
     if (_arraySize != 1)
     {
         result.Append("[").Append(_arraySize).Append("]");
     }
     result.Append(";\n\n");
 }
Exemple #2
0
 internal bool HasFlag(string name)
 {
     return(_flags.HasFlag(name));
 }