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