public string FindSkipName(SkipDeclaration skip) { if (_skipNames.ContainsKey(skip)) { return(_skipNames[skip]); } return(""); }
public void AddSkip(SkipDeclaration skip) { string skipName = GetNewName(); _skips.Add(skip); _skipNames.Add(skip, skipName); _states.Add(skipName, stateNo); stateNo += 1; }
public void Merge(SkipDeclaration skip) { if (skip == null) return; Nested = Nested | skip.Nested; Preprocessor = Preprocessor | skip.Preprocessor; Begin.AddRange(skip.Begin.ToArray()); End.AddRange(skip.End.ToArray()); EscapeSymbol.AddRange(skip.EscapeSymbol.ToArray()); if (skip.Location != null) Location = Location.Merge(skip.Location); }
public void Merge(SkipDeclaration skip) { if (skip == null) { return; } Nested = Nested | skip.Nested; Preprocessor = Preprocessor | skip.Preprocessor; Begin.AddRange(skip.Begin.ToArray()); End.AddRange(skip.End.ToArray()); EscapeSymbol.AddRange(skip.EscapeSymbol.ToArray()); if (skip.Location != null) { Location = Location.Merge(skip.Location); } }
public string FindSkipName(SkipDeclaration skip) { if (_skipNames.ContainsKey(skip)) return _skipNames[skip]; return ""; }