Exemple #1
0
 public Helper(FoundToken startToken)
 {
     StartToken = startToken;
     EndToken = startToken.Range.Tokens().First(t => t.Name == "/" + Name);
     Contents = new Range(startToken.Range
                          .Characters.Skip(StartToken.End)
                          .Take(EndToken.Start - StartToken.End));
 }
Exemple #2
0
 public Helper(FoundToken startToken)
 {
     StartToken = startToken;
     EndToken   = startToken.Range.Tokens().First(t => t.Name == "/" + Name);
     Contents   = new Range(startToken.Range
                            .Characters.Skip(StartToken.End)
                            .Take(EndToken.Start - StartToken.End));
 }