1 write to SemanticModel
Microsoft.CodeAnalysis.Workspaces (1)
AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
31
this.
SemanticModel
= semanticModel;
43 references to SemanticModel
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
CSharpTypeInferenceService.TypeInferrer.cs (24)
101
var typeInfo =
SemanticModel
.GetTypeInfo(node, CancellationToken);
102
var symbolInfo =
SemanticModel
.GetSymbolInfo(node, CancellationToken);
194
var syntaxTree =
SemanticModel
.SyntaxTree;
393
var info =
SemanticModel
.GetSymbolInfo(initializer, CancellationToken);
440
var info =
SemanticModel
.GetTypeInfo(creation, CancellationToken);
467
var info =
SemanticModel
.GetSymbolInfo(invocation, CancellationToken);
479
SemanticModel
.GetMemberGroup(invocation.Expression, CancellationToken)
491
var typeInfo =
SemanticModel
.GetTypeInfo(memberAccess.Expression, CancellationToken);
554
var info =
SemanticModel
.GetSymbolInfo(attribute, CancellationToken);
562
var info =
SemanticModel
.GetTypeInfo(elementAccess.Expression, CancellationToken);
1235
SemanticModel
.GetDeclaredSymbol(equalsValue.Parent, CancellationToken) is IParameterSymbol parameter)
1247
var typeInfo =
SemanticModel
.GetTypeInfo(propertyDeclaration.Type);
1337
var addMethodSymbols =
SemanticModel
.GetCollectionInitializerSymbolInfo(initializerExpression).GetAllSymbols();
1355
var addMethodSymbols =
SemanticModel
.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols();
1446
var addMethodSymbols =
SemanticModel
.GetCollectionInitializerSymbolInfo(expressionOpt).GetAllSymbols();
1474
var type = this.
SemanticModel
.GetTypeInfo(recursivePattern).ConvertedType;
1502
foreach (var symbol in this.
SemanticModel
.GetSymbolInfo(subpattern.ExpressionColon.Expression).GetAllSymbols())
1562
_ when
SemanticModel
.GetOperation(pattern, CancellationToken) is IPatternOperation patternOperation =>
1579
var typeInfo =
SemanticModel
.GetTypeInfo(recursivePattern);
1863
SemanticModel
.GetSymbolInfo(identifierName.Identifier).Symbol?.Kind == SymbolKind.Parameter)
2098
var currentSemanticModel =
SemanticModel
;
2231
var symbol =
SemanticModel
.GetDeclaredSymbol(variableDeclarator);
2277
var descendantSymbol =
SemanticModel
.GetSymbolInfo(descendant, CancellationToken).GetAnySymbol();
2306
var symbol =
SemanticModel
.GetRequiredDeclaredSymbol(variable, CancellationToken);
Microsoft.CodeAnalysis.VisualBasic.Workspaces (18)
VisualBasicTypeInferenceService.TypeInferrer.vb (18)
29
Dim info =
SemanticModel
.GetTypeInfo(node)
40
Dim symbol =
SemanticModel
.GetSymbolInfo(unaryExpression.Operand, CancellationToken).GetAnySymbol()
109
Dim typeSymbol =
SemanticModel
.GetTypeInfo(expressionType).Type
127
Dim tree = Me.
SemanticModel
.SyntaxTree
250
Dim info =
SemanticModel
.GetSymbolInfo(invocation)
261
Dim typeInfo =
SemanticModel
.GetTypeInfo(memberAccess.Expression, CancellationToken)
280
Dim expressionType =
SemanticModel
.GetTypeInfo(targetExpression)
293
Dim info =
SemanticModel
.GetSymbolInfo(creation.Type)
334
Dim info =
SemanticModel
.GetSymbolInfo(attribute)
610
Dim symbol =
SemanticModel
.GetDeclaredSymbol(name, CancellationToken)
628
Dim propertySymbol =
SemanticModel
.GetDeclaredSymbol(propertySyntax)
736
Dim memberSymbol = GetDeclaredMemberSymbolFromOriginalSemanticModel(
SemanticModel
, returnStatement.GetAncestor(Of MethodBlockBaseSyntax).BlockStatement)
767
Dim memberSymbol = GetDeclaredMemberSymbolFromOriginalSemanticModel(
SemanticModel
, yieldStatement.GetAncestor(Of MethodBlockBaseSyntax).BlockStatement)
986
SemanticModel
.GetSymbolInfo(identifier.Identifier).Symbol?.Kind = SymbolKind.Parameter Then
1004
Dim right =
SemanticModel
.GetTypeInfo(initializer.Name).Type
1009
Return CreateResult(
SemanticModel
.GetTypeInfo(initializer.Expression).Type)
1037
Dim expressionAddMethodSymbols =
SemanticModel
.GetCollectionInitializerSymbolInfo(expression).GetAllSymbols().OfType(Of IMethodSymbol)
1049
Dim initializerAddMethodSymbols =
SemanticModel
.GetCollectionInitializerSymbolInfo(collectionInitializer).GetAllSymbols().OfType(Of IMethodSymbol)
Microsoft.CodeAnalysis.Workspaces (1)
AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
41
protected Compilation Compilation =>
SemanticModel
.Compilation;