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); }
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); }
public IEnumerable <DocumentSymbol> Visit(FunctionSymbol functionSymbol) { return(CreateSymbolsOfEntryDocument(functionSymbol, functionSymbol.Declaration.tok, SymbolKind.Function)); }