1 write to SemanticModel
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
866
this.
SemanticModel
= semanticModel;
28 references to SemanticModel
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (28)
CodeGeneration\CodeGenerationTests.cs (28)
69
var typeSymbol = type != null ? type(testContext.
SemanticModel
) : null;
159
GetTypeSymbol(returnType)(testContext.
SemanticModel
),
204
GetTypeSymbol(returnType)(testContext.
SemanticModel
),
236
GetTypeSymbol(returnType)(testContext.
SemanticModel
),
284
GetTypeSymbol(toType)(testContext.
SemanticModel
),
285
fromType(testContext.
SemanticModel
),
352
GetTypeSymbol(returnType)(testContext.
SemanticModel
),
386
var typeSymbol = GetTypeSymbol(type)(testContext.
SemanticModel
);
392
getExplicitInterfaceImplementations?.Invoke(testContext.
SemanticModel
) ?? default,
438
var typeSymbol = GetTypeSymbol(type)(testContext.
SemanticModel
);
442
: getParameterSymbols.Add(Parameter(type, "value")(testContext.
SemanticModel
));
458
GetTypeSymbol(typeof(void))(testContext.
SemanticModel
),
536
var attr = CodeGenerationSymbolFactory.CreateAttributeData(GetTypeSymbol(attributeClass)(testContext.
SemanticModel
));
543
testContext.Result = testContext.Document.WithSyntaxRoot(testContext.
SemanticModel
.SyntaxTree.GetRoot().ReplaceNode(oldNode, newNode));
552
var attributeType = GetTypeSymbol(attributeClass)(testContext.
SemanticModel
);
554
var attributeTarget = testContext.
SemanticModel
.GetDeclaredSymbol(taggedNode);
559
var info = codeGenerator.GetInfo(CodeGenerationContext.Default, options, testContext.
SemanticModel
.SyntaxTree.Options);
562
testContext.Result = testContext.Document.WithSyntaxRoot(testContext.
SemanticModel
.SyntaxTree.GetRoot().ReplaceNode(declarationNode, newNode));
592
updatedDeclarationNode = codeGenerator.UpdateDeclarationType(declarationNode, getType(testContext.
SemanticModel
), info, CancellationToken.None);
596
var retainedMembers = testContext.GetAnnotatedDeclaredSymbols(retainedMembersKey, testContext.
SemanticModel
);
614
testContext.Result = testContext.Document.WithSyntaxRoot(testContext.
SemanticModel
.SyntaxTree.GetRoot().ReplaceNode(declarationNode, updatedDeclarationNode));
690
: parameters.SelectAsArray(p => p(context.
SemanticModel
));
695
return explicitInterface == null ? default : explicitInterface(context.
SemanticModel
);
702
: members.SelectAsArray(m => m(context.
SemanticModel
));
867
this.SyntaxTree =
SemanticModel
.SyntaxTree;
886
return
SemanticModel
.SyntaxTree.GetRoot().FindNode(destSpan, getInnermostNodeForTie: true);
892
return GetSelectedSymbol<INamespaceOrTypeSymbol>(destSpan, this.
SemanticModel
);
919
var token =
SemanticModel
.SyntaxTree.GetRoot().FindToken(destSpan.Start);