Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public MacroDefinition(string macroName, int macroDefLine, int macroEndLine, List <string> argNames, string endLabel)
 {
     MacroName     = macroName;
     Section       = new DefinitionSection(macroDefLine, macroEndLine);
     ArgumentNames = argNames;
     EndLabel      = endLabel;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public StructDefinition(string structName, int macroDefLine, int macroEndLine, bool caseSensitive)
 {
     StructName = structName;
     Section    = new DefinitionSection(macroDefLine, macroEndLine);
     Fields     = new Dictionary <string, FieldDefinition>(
         caseSensitive ? StringComparer.InvariantCulture : StringComparer.InvariantCultureIgnoreCase);
 }
Esempio n. 3
0
 public IfSection(StatementBase stmt, int firstLine, int lastLine)
 {
     IfStatement = stmt;
     Section     = new DefinitionSection(firstLine, lastLine);
 }