Esempio n. 1
0
            private FunctionSymbol ProcessFunction(Symbol scope, Function function)
            {
                _cancellationToken.ThrowIfCancellationRequested();
                var functionSymbol = new FunctionSymbol(scope, function);

                foreach (var parameter in function.Formals)
                {
                    functionSymbol.Parameters.Add(ProcessFormal(scope, parameter));
                }
                return(functionSymbol);
            }
Esempio n. 2
0
 public Unit Visit(FunctionSymbol functionSymbol)
 {
     _cancellationToken.ThrowIfCancellationRequested();
     RegisterLocation(
         functionSymbol,
         functionSymbol.Declaration.tok,
         functionSymbol.Declaration.tok.GetLspRange(),
         new Range(functionSymbol.Declaration.tok.GetLspPosition(), functionSymbol.Declaration.BodyEndTok.GetLspPosition())
         );
     VisitChildren(functionSymbol);
     return(Unit.Value);
 }
Esempio n. 3
0
 public IEnumerable <DocumentSymbol> Visit(FunctionSymbol functionSymbol)
 {
     return(CreateSymbolsOfEntryDocument(functionSymbol, functionSymbol.Declaration.tok, SymbolKind.Function));
 }