示例#1
0
 /// <summary>
 /// Resets the parse state and default to the specified file.
 /// </summary>
 /// <param name="defaultFile">The default file.</param>
 public void Reset(DwarfFileInformation defaultFile)
 {
     Address        = 0;
     OperationIndex = 0;
     File           = defaultFile;
     Line           = 1;
     Column         = 0;
     IsStatement    = DefaultIsStatement;
     IsBasicBlock   = false;
     IsSequenceEnd  = false;
     IsPrologueEnd  = false;
     IsEpilogueEnd  = false;
     Isa            = 0;
     Discriminator  = 0;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParsingState"/> class.
 /// </summary>
 /// <param name="defaultFile">The default file.</param>
 /// <param name="defaultIsStatement">if set to <c>true</c> defaulting to statement during reset.</param>
 /// <param name="minimumInstructionLength">Minimum length of the instruction.</param>
 public ParsingState(DwarfFileInformation defaultFile, bool defaultIsStatement, byte minimumInstructionLength)
 {
     DefaultIsStatement       = defaultIsStatement;
     MinimumInstructionLength = minimumInstructionLength;
     Reset(defaultFile);
 }