Esempio n. 1
0
 public string FindSkipName(SkipDeclaration skip)
 {
     if (_skipNames.ContainsKey(skip))
     {
         return(_skipNames[skip]);
     }
     return("");
 }
Esempio n. 2
0
        public void AddSkip(SkipDeclaration skip)
        {
            string skipName = GetNewName();

            _skips.Add(skip);
            _skipNames.Add(skip, skipName);
            _states.Add(skipName, stateNo);
            stateNo += 1;
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 5
0
 public string FindSkipName(SkipDeclaration skip)
 {
     if (_skipNames.ContainsKey(skip))
         return _skipNames[skip];
     return "";
 }
Esempio n. 6
0
 public void AddSkip(SkipDeclaration skip)
 {
     string skipName = GetNewName();
     _skips.Add(skip);
     _skipNames.Add(skip, skipName);
     _states.Add(skipName, stateNo);
     stateNo += 1;
 }