internal static SemanticMap From(SemanticModel semanticModel, SyntaxNode node, CancellationToken cancellationToken) { var map = new SemanticMap(); var walker = new Walker(semanticModel, map, cancellationToken); walker.Visit(node); return map; }
public Walker(SemanticModel semanticModel, SemanticMap map, CancellationToken cancellationToken) : base(SyntaxWalkerDepth.Token) { _semanticModel = semanticModel; _map = map; _cancellationToken = cancellationToken; }