Пример #1
0
 public SourceSpan GetApplicableSpanFromLastToken(Node containingNode)
 {
     if (containingNode != null && Position >= containingNode.EndIndex)
     {
         var token = TokenSource.Tokens.LastOrDefault();
         if (token.Key.End >= Position)
         {
             return(TokenSource.GetTokenSpan(token.Key));
         }
     }
     return(default);
Пример #2
0
 public ExpressionSource(TokenSource tokenSource)
 {
     _tokenSource = tokenSource;
 }