2 instantiations of CodeModelState
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
CodeModel\FileCodeModelTestHelpers.cs (1)
49var state = new CodeModelState(
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\CodeModelProjectCache.cs (1)
43State = new CodeModelState(threadingContext, serviceProvider, languageServices, workspace, projectFactory);
184 references to CodeModelState
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
513CodeModelState state, 590public override EnvDTE.CodeElement CreateUnknownCodeElement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 640public override EnvDTE.CodeElement CreateUnknownRootNamespaceCodeElement(CodeModelState state, FileCodeModel fileCodeModel) 643public override EnvDTE.CodeTypeRef CreateCodeTypeRef(CodeModelState state, ProjectId projectId, object type)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
CodeModel\FileCodeModelTestHelpers.cs (1)
49var state = new CodeModelState(
Microsoft.VisualStudio.LanguageServices.Implementation (179)
CodeModel\AbstractCodeModelObject.cs (3)
26private CodeModelState _state; 28internal AbstractCodeModelObject(CodeModelState state) 37internal CodeModelState State
CodeModel\AbstractCodeModelService.cs (15)
207public EnvDTE.CodeElement CreateExternalCodeElement(CodeModelState state, ProjectId projectId, ISymbol symbol) 252CodeModelState state, 256public EnvDTE.CodeElement CreateCodeType(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol) 308public abstract EnvDTE.CodeTypeRef CreateCodeTypeRef(CodeModelState state, ProjectId projectId, object type); 332protected EnvDTE.CodeFunction CreateInternalCodeAccessorFunction(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 350protected EnvDTE.CodeAttribute CreateInternalCodeAttribute(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 388protected EnvDTE80.CodeImport CreateInternalCodeImport(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 402protected EnvDTE.CodeParameter CreateInternalCodeParameter(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 421protected EnvDTE80.CodeElement2 CreateInternalCodeOptionStatement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 429protected EnvDTE80.CodeElement2 CreateInternalCodeInheritsStatement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 448protected EnvDTE80.CodeElement2 CreateInternalCodeImplementsStatement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 467protected EnvDTE80.CodeAttributeArgument CreateInternalCodeAttributeArgument(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node) 477public abstract EnvDTE.CodeElement CreateUnknownCodeElement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node); 478public abstract EnvDTE.CodeElement CreateUnknownRootNamespaceCodeElement(CodeModelState state, FileCodeModel fileCodeModel); 573CodeModelState state, Project project, ITypeSymbol typeSymbol, [NotNullWhen(true)] out EnvDTE.CodeElement? element)
CodeModel\CodeModelProjectCache.cs (1)
32internal CodeModelState State { get; }
CodeModel\CodeTypeRef.cs (2)
31internal static EnvDTE.CodeTypeRef Create(CodeModelState state, object parent, ProjectId projectId, ITypeSymbol typeSymbol) 41private CodeTypeRef(CodeModelState state, object parent, ProjectId projectId, ITypeSymbol typeSymbol)
CodeModel\Collections\AbstractCodeElementCollection.cs (1)
18CodeModelState state,
CodeModel\Collections\AttributeArgumentCollection.cs (2)
21CodeModelState state, 29CodeModelState state,
CodeModel\Collections\AttributeCollection.cs (2)
21CodeModelState state, 29CodeModelState state,
CodeModel\Collections\BasesCollection.cs (2)
26CodeModelState state, 40CodeModelState state,
CodeModel\Collections\EmptyCollection.cs (2)
20CodeModelState state, 28CodeModelState state,
CodeModel\Collections\ExternalMemberCollection.cs (2)
23CodeModelState state, 36private ExternalMemberCollection(CodeModelState state, object parent, ProjectId projectId, ITypeSymbol typeSymbol)
CodeModel\Collections\ExternalNamespaceCollection.cs (2)
21CodeModelState state, 34internal ExternalNamespaceCollection(CodeModelState state, object parent, ProjectId projectId, INamespaceSymbol namespaceSymbol)
CodeModel\Collections\ExternalNamespaceEnumerator.cs (4)
21internal static IEnumerator Create(CodeModelState state, ProjectId projectId, SymbolKey namespaceSymbolId) 27private ExternalNamespaceEnumerator(CodeModelState state, ProjectId projectId, SymbolKey namespaceSymbolId) 36private readonly CodeModelState _state; 59internal static IEnumerable<EnvDTE.CodeElement> ChildrenOfNamespace(CodeModelState state, ProjectId projectId, SymbolKey namespaceSymbolId)
CodeModel\Collections\ExternalOverloadsCollection.cs (2)
22CodeModelState state, 33CodeModelState state,
CodeModel\Collections\ExternalParameterCollection.cs (2)
22CodeModelState state, 33CodeModelState state,
CodeModel\Collections\ExternalTypeCollection.cs (2)
21CodeModelState state, 33private ExternalTypeCollection(CodeModelState state, object parent, ProjectId projectId, ImmutableArray<INamedTypeSymbol> typeSymbols)
CodeModel\Collections\InheritsImplementsCollection.cs (2)
23CodeModelState state, 36CodeModelState state,
CodeModel\Collections\NamespaceCollection.cs (2)
23CodeModelState state, 36CodeModelState state,
CodeModel\Collections\NodeSnapshot.cs (2)
18private readonly CodeModelState _state; 25CodeModelState state,
CodeModel\Collections\OverloadsCollection.cs (2)
23CodeModelState state, 31CodeModelState state,
CodeModel\Collections\ParameterCollection.cs (2)
19CodeModelState state, 27CodeModelState state,
CodeModel\Collections\PartialTypeCollection.cs (2)
23CodeModelState state, 31CodeModelState state,
CodeModel\Collections\TypeCollection.cs (2)
23CodeModelState state, 36CodeModelState state,
CodeModel\Collections\UnionCollection.cs (2)
20CodeModelState state, 31CodeModelState state,
CodeModel\ExternalElements\AbstractExternalCodeElement.cs (1)
24internal AbstractExternalCodeElement(CodeModelState state, ProjectId projectId, ISymbol symbol)
CodeModel\ExternalElements\AbstractExternalCodeMember.cs (1)
15internal AbstractExternalCodeMember(CodeModelState state, ProjectId projectId, ISymbol symbol)
CodeModel\ExternalElements\AbstractExternalCodeType.cs (1)
17internal AbstractExternalCodeType(CodeModelState state, ProjectId projectId, ITypeSymbol symbol)
CodeModel\ExternalElements\ExternalCodeAccessorFunction.cs (2)
19internal static EnvDTE.CodeFunction Create(CodeModelState state, ProjectId projectId, IMethodSymbol symbol, AbstractExternalCodeMember parent) 27private ExternalCodeAccessorFunction(CodeModelState state, ProjectId projectId, IMethodSymbol symbol, AbstractExternalCodeMember parent)
CodeModel\ExternalElements\ExternalCodeClass.cs (2)
20internal static EnvDTE.CodeClass Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol) 26private ExternalCodeClass(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
CodeModel\ExternalElements\ExternalCodeDelegate.cs (2)
19internal static EnvDTE.CodeDelegate Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol) 25private ExternalCodeDelegate(CodeModelState state, ProjectId projectId, ITypeSymbol symbol)
CodeModel\ExternalElements\ExternalCodeEnum.cs (2)
19internal static EnvDTE.CodeEnum Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol) 25private ExternalCodeEnum(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
CodeModel\ExternalElements\ExternalCodeEvent.cs (2)
19internal static EnvDTE80.CodeEvent Create(CodeModelState state, ProjectId projectId, IEventSymbol symbol) 25private ExternalCodeEvent(CodeModelState state, ProjectId projectId, IEventSymbol symbol)
CodeModel\ExternalElements\ExternalCodeFunction.cs (2)
20internal static EnvDTE.CodeFunction Create(CodeModelState state, ProjectId projectId, IMethodSymbol symbol) 26private ExternalCodeFunction(CodeModelState state, ProjectId projectId, IMethodSymbol symbol)
CodeModel\ExternalElements\ExternalCodeInterface.cs (2)
19internal static EnvDTE.CodeInterface Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol) 25private ExternalCodeInterface(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
CodeModel\ExternalElements\ExternalCodeNamespace.cs (2)
19internal static EnvDTE.CodeNamespace Create(CodeModelState state, ProjectId projectId, INamespaceSymbol namespaceSymbol) 25private ExternalCodeNamespace(CodeModelState state, ProjectId projectId, INamespaceSymbol namespaceSymbol)
CodeModel\ExternalElements\ExternalCodeParameter.cs (2)
18internal static EnvDTE.CodeParameter Create(CodeModelState state, ProjectId projectId, IParameterSymbol symbol, AbstractExternalCodeMember parent) 26private ExternalCodeParameter(CodeModelState state, ProjectId projectId, IParameterSymbol symbol, AbstractExternalCodeElement parent)
CodeModel\ExternalElements\ExternalCodeProperty.cs (2)
18internal static EnvDTE.CodeProperty Create(CodeModelState state, ProjectId projectId, IPropertySymbol symbol) 24private ExternalCodeProperty(CodeModelState state, ProjectId projectId, IPropertySymbol symbol)
CodeModel\ExternalElements\ExternalCodeStruct.cs (2)
20internal static EnvDTE.CodeStruct Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol) 26private ExternalCodeStruct(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
CodeModel\ExternalElements\ExternalCodeUnknown.cs (2)
17internal static EnvDTE.CodeElement Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol) 23private ExternalCodeUnknown(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
CodeModel\ExternalElements\ExternalCodeVariable.cs (2)
18internal static EnvDTE.CodeVariable Create(CodeModelState state, ProjectId projectId, ISymbol symbol) 24private ExternalCodeVariable(CodeModelState state, ProjectId projectId, ISymbol symbol)
CodeModel\FileCodeModel.cs (2)
35CodeModelState state, 73CodeModelState state,
CodeModel\FileCodeModel_CodeGen.cs (1)
78private EnvDTE.CodeElement CreateInternalCodeMember(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node)
CodeModel\ICodeModelService.cs (6)
83EnvDTE.CodeElement CreateInternalCodeElement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node); 84EnvDTE.CodeElement CreateExternalCodeElement(CodeModelState state, ProjectId projectId, ISymbol symbol); 85EnvDTE.CodeElement CreateUnknownCodeElement(CodeModelState state, FileCodeModel fileCodeModel, SyntaxNode node); 86EnvDTE.CodeElement CreateUnknownRootNamespaceCodeElement(CodeModelState state, FileCodeModel fileCodeModel); 88EnvDTE.CodeElement CreateCodeType(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol); 93EnvDTE.CodeTypeRef CreateCodeTypeRef(CodeModelState state, ProjectId projectId, object type);
CodeModel\InternalElements\AbstractCodeElement.cs (1)
27CodeModelState state,
CodeModel\InternalElements\AbstractCodeMember.cs (2)
22CodeModelState state, 31CodeModelState state,
CodeModel\InternalElements\AbstractCodeType.cs (2)
20CodeModelState state, 29CodeModelState state,
CodeModel\InternalElements\AbstractKeyedCodeElement.cs (2)
24CodeModelState state, 36CodeModelState state,
CodeModel\InternalElements\CodeAccessorFunction.cs (2)
20internal static EnvDTE.CodeFunction Create(CodeModelState state, AbstractCodeMember parent, MethodKind kind) 29private CodeAccessorFunction(CodeModelState state, AbstractCodeMember parent, MethodKind kind)
CodeModel\InternalElements\CodeAttribute.cs (2)
21CodeModelState state, 36private CodeAttribute(CodeModelState state, FileCodeModel fileCodeModel, AbstractCodeElement parent, string name, int ordinal)
CodeModel\InternalElements\CodeAttributeArgument.cs (2)
21internal static EnvDTE80.CodeAttributeArgument Create(CodeModelState state, CodeAttribute parent, int index) 33private CodeAttributeArgument(CodeModelState state, CodeAttribute parent, int index)
CodeModel\InternalElements\CodeClass.cs (4)
27CodeModelState state, 41CodeModelState state, 52CodeModelState state, 61CodeModelState state,
CodeModel\InternalElements\CodeDelegate.cs (4)
19CodeModelState state, 33CodeModelState state, 43CodeModelState state, 52CodeModelState state,
CodeModel\InternalElements\CodeEnum.cs (4)
17CodeModelState state, 31CodeModelState state, 41CodeModelState state, 50CodeModelState state,
CodeModel\InternalElements\CodeEvent.cs (4)
20CodeModelState state, 34CodeModelState state, 44CodeModelState state, 53CodeModelState state,
CodeModel\InternalElements\CodeFunction.cs (4)
23CodeModelState state, 37CodeModelState state, 47CodeModelState state, 56CodeModelState state,
CodeModel\InternalElements\CodeFunctionDeclareDecl.cs (4)
15CodeModelState state, 29CodeModelState state, 39CodeModelState state, 48CodeModelState state,
CodeModel\InternalElements\CodeFunctionWithEventHandler.cs (4)
17CodeModelState state, 31CodeModelState state, 41CodeModelState state, 50CodeModelState state,
CodeModel\InternalElements\CodeImplementsStatement.cs (4)
20CodeModelState state, 32CodeModelState state, 46CodeModelState state, 58CodeModelState state,
CodeModel\InternalElements\CodeImport.cs (4)
22CodeModelState state, 34CodeModelState state, 47CodeModelState state, 58CodeModelState state,
CodeModel\InternalElements\CodeInheritsStatement.cs (4)
20CodeModelState state, 32CodeModelState state, 46CodeModelState state, 58CodeModelState state,
CodeModel\InternalElements\CodeInterface.cs (4)
18CodeModelState state, 32CodeModelState state, 42CodeModelState state, 51CodeModelState state,
CodeModel\InternalElements\CodeNamespace.cs (4)
21CodeModelState state, 35CodeModelState state, 45CodeModelState state, 54CodeModelState state,
CodeModel\InternalElements\CodeOptionsStatement.cs (4)
20CodeModelState state, 32CodeModelState state, 45CodeModelState state, 56CodeModelState state,
CodeModel\InternalElements\CodeParameter.cs (2)
24CodeModelState state, 36CodeModelState state,
CodeModel\InternalElements\CodeProperty.cs (4)
21CodeModelState state, 35CodeModelState state, 45CodeModelState state, 54CodeModelState state,
CodeModel\InternalElements\CodeStruct.cs (4)
19CodeModelState state, 33CodeModelState state, 43CodeModelState state, 52CodeModelState state,
CodeModel\InternalElements\CodeVariable.cs (4)
19CodeModelState state, 33CodeModelState state, 43CodeModelState state, 52CodeModelState state,
CodeModel\RootCodeModel.cs (2)
23internal static EnvDTE.CodeModel Create(CodeModelState state, EnvDTE.Project parent, ProjectId projectId) 32private RootCodeModel(CodeModelState state, EnvDTE.Project parent, ProjectId projectId)