Exemple #1
0
        private Dictionary <ISymbol, List <SyntaxToken> > GetSymbolMap(SemanticModel model)
        {
            var context   = _selectionResult.GetContainingScope();
            var symbolMap = SymbolMapBuilder.Build(model, context, _selectionResult.GetFinalSpan(), _cancellationToken);

            return(symbolMap);
        }
Exemple #2
0
        public static Dictionary <ISymbol, List <SyntaxToken> > Build(
            SemanticModel semanticModel,
            SyntaxNode root,
            TextSpan span,
            CancellationToken cancellationToken)
        {
            var builder = new SymbolMapBuilder(semanticModel, span, cancellationToken);

            builder.Visit(root);

            return(builder._symbolMap);
        }