Exemplo n.º 1
0
        public IASTLocation Merge(ITokenLocation begin, ITokenLocation end)
        {
            if (begin is SourceRange beginrange && end is SourceRange endrange)
            {
                return(new TokenRangeASTLocation(beginrange, endrange));
            }

            return(new TokenLocationsASTLocation(begin, end));
        }
Exemplo n.º 2
0
 public TokenASTLocation(ITokenLocation tokenLocation)
 {
     this.TokenLocation = tokenLocation;
 }
Exemplo n.º 3
0
 public TokenLocationsASTLocation(ITokenLocation begin, ITokenLocation end)
 {
     this.Begin = begin;
     this.End   = end;
 }