303 references to CodeModelService
Microsoft.VisualStudio.LanguageServices.Implementation (303)
CodeModel\AbstractCodeModelObject.cs (1)
89get { return this.CodeModelService.Language; }
CodeModel\AbstractCodeModelObject_CodeGen.cs (18)
37var destination = CodeModelService.GetDestination(containerNode); 41accessibility: CodeModelService.GetAccessibility(access, SymbolKind.Method, destination), 54var destination = CodeModelService.GetDestination(containerNode); 68var destination = CodeModelService.GetDestination(containerNode); 72accessibility: CodeModelService.GetAccessibility(access, SymbolKind.NamedType, destination), 85var destination = CodeModelService.GetDestination(containerNode); 117accessibility: CodeModelService.GetAccessibility(access, SymbolKind.Event, destination), 131var destination = CodeModelService.GetDestination(containerNode); 135accessibility: CodeModelService.GetAccessibility(access, SymbolKind.Field, destination), 136modifiers: new DeclarationModifiers(isWithEvents: CodeModelService.GetWithEvents(access)), 146var destination = CodeModelService.GetDestination(containerNode); 150accessibility: CodeModelService.GetAccessibility(access, SymbolKind.Method, destination), 181var destination = CodeModelService.GetDestination(containerNode); 196statements: [CodeModelService.CreateReturnDefaultValueStatement(type)]); 216accessibility: CodeModelService.GetAccessibility(access, SymbolKind.Field, destination), 232var destination = CodeModelService.GetDestination(containerNode); 248var destination = CodeModelService.GetDestination(containerNode); 252accessibility: CodeModelService.GetAccessibility(access, SymbolKind.NamedType, destination),
CodeModel\CodeTypeRef.cs (5)
51if (CodeModelService.ResolveSymbol(this.State.Workspace, _projectId, _symbolId) is not ITypeSymbol typeSymbol) 61get { return CodeModelService.GetAsFullNameForCodeTypeRef(LookupTypeSymbol()); } 66get { return CodeModelService.GetAsStringForCodeTypeRef(LookupTypeSymbol()); } 71get { return (EnvDTE.CodeType)CodeModelService.CreateCodeType(this.State, _projectId, LookupTypeSymbol()); } 147get { return CodeModelService.GetTypeKindForCodeTypeRef(LookupTypeSymbol()); }
CodeModel\Collections\AttributeArgumentCollection.cs (4)
47var attributeArgumentNodes = CodeModelService.GetAttributeArgumentNodes(node); 63foreach (var child in CodeModelService.GetAttributeArgumentNodes(node)) 65var childName = CodeModelService.GetName(child); 84return CodeModelService.GetAttributeArgumentNodes(node).Count();
CodeModel\Collections\AttributeCollection.cs (5)
50CodeModelService.GetAttributeNameAndOrdinal(parentNode, node, out var name, out var ordinal); 59var attributeNodes = CodeModelService.GetAttributeNodes(node); 76foreach (var child in CodeModelService.GetAttributeNodes(node)) 78CodeModelService.GetAttributeNameAndOrdinal(node, child, out var childName, out var ordinal); 94return CodeModelService.GetAttributeNodes(ParentElement.LookupNode()).Count();
CodeModel\Collections\BasesCollection.cs (3)
94element = CodeModelService.CreateCodeType(this.State, projectId, child); 111name = CodeModelService.GetFullyQualifiedName(name, node.SpanStart, semanticModel); 120element = CodeModelService.CreateCodeType(this.State, projectId, child);
CodeModel\Collections\ExternalMemberCollection.cs (1)
62if (this.CodeModelService.IsValidExternalSymbol(member))
CodeModel\Collections\InheritsImplementsCollection.cs (10)
62.. CodeModelService.GetInheritsNodes(node), 63.. CodeModelService.GetImplementsNodes(node), 74var inheritsNodes = CodeModelService.GetInheritsNodes(node); 86var implementsNodes = CodeModelService.GetImplementsNodes(node); 104foreach (var child in CodeModelService.GetInheritsNodes(node)) 106CodeModelService.GetInheritsNamespaceAndOrdinal(node, child, out var childName, out var ordinal); 115foreach (var child in CodeModelService.GetImplementsNodes(node)) 117CodeModelService.GetImplementsNamespaceAndOrdinal(node, child, out var childName, out var ordinal); 135CodeModelService.GetInheritsNodes(node).Count() + 136CodeModelService.GetImplementsNodes(node).Count();
CodeModel\Collections\NamespaceCollection.cs (23)
72CodeModelService.GetOptionNameAndOrdinal(parentNode, node, out var name, out var ordinal); 79var name = CodeModelService.GetImportNamespaceOrType(node); 86CodeModelService.GetAttributeNameAndOrdinal(parentNode, node, out var name, out var ordinal); 99.. CodeModelService.GetOptionNodes(node), 100.. CodeModelService.GetImportNodes(node), 101.. CodeModelService.GetAttributeNodes(node), 102.. CodeModelService.GetLogicalSupportedMemberNodes(node), 116var optionNodes = CodeModelService.GetOptionNodes(node); 128var importNodes = CodeModelService.GetImportNodes(node); 140var attributeNodes = CodeModelService.GetAttributeNodes(node); 152var memberNodes = CodeModelService.GetLogicalSupportedMemberNodes(node); 173foreach (var child in CodeModelService.GetOptionNodes(node)) 175CodeModelService.GetOptionNameAndOrdinal(node, child, out var childName, out var ordinal); 184foreach (var child in CodeModelService.GetImportNodes(node)) 186var childName = CodeModelService.GetImportNamespaceOrType(child); 195foreach (var child in CodeModelService.GetAttributeNodes(node)) 197CodeModelService.GetAttributeNameAndOrdinal(node, child, out var childName, out var ordinal); 206foreach (var child in CodeModelService.GetLogicalSupportedMemberNodes(node)) 208var childName = CodeModelService.GetName(child); 226CodeModelService.GetOptionNodes(node).Count() + 227CodeModelService.GetImportNodes(node).Count() + 228CodeModelService.GetAttributeNodes(node).Count() + 229CodeModelService.GetLogicalSupportedMemberNodes(node).Count();
CodeModel\Collections\ParameterCollection.cs (2)
45element = (EnvDTE.CodeElement)CodeParameter.Create(this.State, this.ParentElement, CodeModelService.GetParameterName(parameter)); 58if (CodeModelService.TryGetParameterNode(parentNode, name, out _))
CodeModel\Collections\TypeCollection.cs (5)
61[.. CodeModelService.GetLogicalSupportedMemberNodes(node)]); 68var memberNodes = CodeModelService.GetLogicalSupportedMemberNodes(node); 84foreach (var child in CodeModelService.GetLogicalSupportedMemberNodes(node)) 86var childName = CodeModelService.GetName(child); 103return CodeModelService.GetLogicalSupportedMemberNodes(node).Count();
CodeModel\ExternalElements\AbstractExternalCodeElement.cs (7)
48var symbol = CodeModelService.ResolveSymbol(this.State.Workspace, this.ProjectId, this.SymbolKey); 59=> CodeModelService.GetAccess(LookupSymbol()); 116=> CodeModelService.GetExternalSymbolFullName(LookupSymbol()); 125=> CodeModelService.GetExternalSymbolName(LookupSymbol()); 139return CodeModelService.CreateCodeType(this.State, this.ProjectId, symbol.ContainingType); 143return CodeModelService.CreateExternalCodeElement(this.State, this.ProjectId, symbol.ContainingNamespace); 317=> CodeModelService.GetPrototype(null, LookupSymbol(), (PrototypeFlags)flags);
CodeModel\ExternalElements\AbstractExternalCodeType.cs (2)
28=> CodeModelService.GetExternalTypeExtenderNames(); 50return CodeModelService.GetExternalTypeExtender(name, metadataReference.FilePath);
CodeModel\FileCodeModel.cs (11)
130CodeModelService.DetachFormatTrackingToBuffer(_invisibleEditor.TextBuffer); 240var nodeKey = CodeModelService.TryGetNodeKey(node); 268return (T)CodeModelService.CreateInternalCodeElement(this.State, this, node); 288CodeModelService.AttachFormatTrackingToBuffer(_invisibleEditor.TextBuffer); 300CodeModelService.DetachFormatTrackingToBuffer(_invisibleEditor.TextBuffer); 460=> CodeModelService.LookupNode(nodeKey, GetSyntaxTree()); 466return AddAttribute(GetSyntaxRoot(), name, value, position, target: CodeModelService.AssemblyAttributeString); 607var node = parent?.AncestorsAndSelf().FirstOrDefault(n => CodeModelService.MatchesScope(n, scope)); 620(scope == EnvDTE.vsCMElement.vsCMElementFunction && CodeModelService.IsAccessorNode(node))) 625return CodeModelService.CreateInternalCodeElement(State, this, node); 714CodeModelService.EnsureBufferFormatted(_invisibleEditor.TextBuffer);
CodeModel\FileCodeModel_CodeGen.cs (105)
27var resultNode = CodeModelService.InsertAttribute( 38var resultNode = CodeModelService.InsertAttributeArgument( 49var resultNode = CodeModelService.InsertImport( 60var resultNode = CodeModelService.InsertMember( 71var resultNode = CodeModelService.InsertParameter( 80var element = CodeModelService.CreateInternalCodeElement(state, fileCodeModel, node); 97return CodeModelService.UpdateNode(document, node, updatedNode, CancellationToken.None); 145var attributeArgumentNode = CodeModelService.CreateAttributeArgumentNode(CodeModelService.GetUnescapedName(name), value); 146var insertionIndex = CodeModelService.PositionVariantToAttributeArgumentInsertionIndex(position, containerNode, fileCodeModel: this); 150return (EnvDTE80.CodeAttributeArgument)CodeModelService.CreateInternalCodeElement(this.State, fileCodeModel: this, node: newNode); 155containerNode = CodeModelService.GetNodeWithAttributes(containerNode); 156var attributeNode = CodeModelService.CreateAttributeNode(CodeModelService.GetUnescapedName(name), value, target); 157var insertionIndex = CodeModelService.PositionVariantToAttributeInsertionIndex(position, containerNode, fileCodeModel: this); 161return (EnvDTE.CodeAttribute)CodeModelService.CreateInternalCodeElement(this.State, fileCodeModel: this, node: newNode); 166var typeSymbol = CodeModelService.GetTypeSymbol(type, this.GetSemanticModel(), containerNode.SpanStart); 169var parameterNode = CodeModelService.CreateParameterNode(CodeModelService.GetUnescapedName(name), typeName); 170var insertionIndex = CodeModelService.PositionVariantToParameterInsertionIndex(position, containerNode, fileCodeModel: this); 186return CodeParameter.Create(this.State, parentObj, CodeModelService.GetParameterName(newNode)); 199? (INamedTypeSymbol?)CodeModelService.GetTypeSymbol(baseArray[0], semanticModel, containerNodePosition) 205i => (INamedTypeSymbol)CodeModelService.GetTypeSymbol(i, semanticModel, containerNodePosition)); 210CodeModelService.GetUnescapedName(name), 216var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 229var returnType = (INamedTypeSymbol)CodeModelService.GetTypeSymbol(type, semanticModel, containerNodePosition); 231var newType = CreateDelegateTypeDeclaration(containerNode, CodeModelService.GetUnescapedName(name), access, returnType, options); 232var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 246var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 269var newField = CreateFieldDeclaration(containerNode, CodeModelService.GetUnescapedName(name), EnvDTE.vsCMAccess.vsCMAccessPublic, type, options); 272newField = CodeModelService.AddInitExpression(newField, (string)value); 275var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 288var eventType = (INamedTypeSymbol)CodeModelService.GetTypeSymbol(fullDelegateName, semanticModel, containerNodePosition); 290var newEvent = CreateEventDeclaration(containerNode, CodeModelService.GetUnescapedName(name), access, eventType, options, createPropertyStyleEvent); 291var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 301kind = CodeModelService.ValidateFunctionKind(containerNode, kind, name); 311? CodeModelService.GetTypeSymbol(type, semanticModel, containerNodePosition) 314newMember = CreateMethodDeclaration(containerNode, CodeModelService.GetUnescapedName(name), access, returnType, options); 318newMember = CreateConstructorDeclaration(containerNode, CodeModelService.GetUnescapedName(name), access, options); 322newMember = CreateDestructorDeclaration(containerNode, CodeModelService.GetUnescapedName(name), options); 325var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 334var importNode = CodeModelService.CreateImportNode(CodeModelService.GetUnescapedName(name), alias); 335var insertionIndex = CodeModelService.PositionVariantToImportInsertionIndex(position, containerNode, fileCodeModel: this); 339return (EnvDTE80.CodeImport)CodeModelService.CreateInternalCodeElement(this.State, fileCodeModel: this, node: newNode); 351i => (INamedTypeSymbol)CodeModelService.GetTypeSymbol(i, semanticModel, containerNodePosition)); 356CodeModelService.GetUnescapedName(name), 361var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 372var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 394var propertyType = CodeModelService.GetTypeSymbol(type, semanticModel, containerNodePosition); 397CodeModelService.GetUnescapedName(isGetterPresent ? getterName : putterName), 403var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 421i => (INamedTypeSymbol)CodeModelService.GetTypeSymbol(i, semanticModel, containerNodePosition)); 426CodeModelService.GetUnescapedName(name), 431var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 444var fieldType = CodeModelService.GetTypeSymbol(type, semanticModel, containerNodePosition); 445var newField = CreateFieldDeclaration(containerNode, CodeModelService.GetUnescapedName(name), access, fieldType, options); 446var insertionIndex = CodeModelService.PositionVariantToMemberInsertionIndex(position, containerNode, fileCodeModel: this); 455node = CodeModelService.GetNodeWithModifiers(node); 456var updatedNode = CodeModelService.SetAccess(node, access); 466node = CodeModelService.GetAttributeTargetNode(node); 467var updatedNode = CodeModelService.SetAttributeTarget(node, value); 477var updatedNode = CodeModelService.SetAttributeValue(node, value); 487node = CodeModelService.GetNodeWithModifiers(node); 488var updatedNode = CodeModelService.SetCanOverride(node, value); 498node = CodeModelService.GetNodeWithModifiers(node); 499var updatedNode = CodeModelService.SetClassKind(node, kind); 509node = CodeModelService.GetNodeWithModifiers(node); 510var updatedNode = CodeModelService.SetComment(node, value); 520node = CodeModelService.GetNodeWithModifiers(node); 521var updatedNode = CodeModelService.SetConstKind(node, kind); 531node = CodeModelService.GetNodeWithModifiers(node); 532var updatedNode = CodeModelService.SetDataTypeKind(node, kind); 542node = CodeModelService.GetNodeWithModifiers(node); 543var updatedNode = CodeModelService.SetDocComment(node, value); 553node = CodeModelService.GetNodeWithModifiers(node); 554var updatedNode = CodeModelService.SetInheritanceKind(node, kind); 564node = CodeModelService.GetNodeWithModifiers(node); 565var updatedNode = CodeModelService.SetIsConstant(node, value); 575node = CodeModelService.GetNodeWithModifiers(node); 576var updatedNode = CodeModelService.SetIsDefault(node, value); 586node = CodeModelService.GetNodeWithModifiers(node); 587var updatedNode = CodeModelService.SetIsShared(node, value); 597node = CodeModelService.GetNodeWithModifiers(node); 598var updatedNode = CodeModelService.SetMustImplement(node, value); 608node = CodeModelService.GetNodeWithName(node); 609var updatedNode = CodeModelService.SetName(node, name); 619node = CodeModelService.GetNodeWithModifiers(node); 620var updatedNode = CodeModelService.SetOverrideKind(node, kind); 630var updatedNode = CodeModelService.SetParameterKind(node, kind); 640node = CodeModelService.GetNodeWithInitializer(node); 641var updatedNode = CodeModelService.AddInitExpression(node, initExpression); 651node = CodeModelService.GetNodeWithType(node); 653? CodeModelService.GetTypeSymbolFromFullName(codeTypeRef.AsFullName, GetCompilation()) 656var updatedNode = CodeModelService.SetType(node, typeSymbol); 697var typeSymbol = CodeModelService.GetTypeSymbol(@base, semanticModel, node.SpanStart); 702!CodeModelService.IsValidBaseType(node, typeSymbol)) 709var updatedNode = CodeModelService.AddBase(node, typeSymbol, semanticModel, realPosition); 720var typeSymbol = CodeModelService.GetTypeSymbol(element, semanticModel, node.SpanStart); 722var updatedNode = CodeModelService.RemoveBase(node, typeSymbol, semanticModel); 733var typeSymbol = CodeModelService.GetTypeSymbol(@base, semanticModel, node.SpanStart); 738!CodeModelService.IsValidInterfaceType(node, typeSymbol)) 745var updatedNode = CodeModelService.AddImplementedInterface(node, typeSymbol, semanticModel, realPosition); 758var typeSymbol = CodeModelService.GetTypeSymbol(element, semanticModel, node.SpanStart); 760var updatedNode = CodeModelService.RemoveImplementedInterface(node, typeSymbol, semanticModel);
CodeModel\FileCodeModel_Events.cs (12)
52var eventQueue = this.CodeModelService.CollectCodeModelEvents(oldTree, newTree); 143element = this.CodeModelService.CreateUnknownRootNamespaceCodeElement(this.State, this); 145else if (this.CodeModelService.IsParameterNode(codeModelEvent.Node)) 149else if (this.CodeModelService.IsAttributeNode(codeModelEvent.Node)) 153else if (this.CodeModelService.IsAttributeArgumentNode(codeModelEvent.Node)) 161element = this.CodeModelService.CreateUnknownCodeElement(this.State, this, codeModelEvent.Node); 179if (this.CodeModelService.IsParameterNode(codeModelEvent.Node) || 180this.CodeModelService.IsAttributeArgumentNode(codeModelEvent.Node)) 187else if (this.CodeModelService.IsAttributeNode(codeModelEvent.Node)) 230var parameterName = this.CodeModelService.GetName(codeModelEvent.Node); 284CodeModelService.GetAttributeNameAndOrdinal(parentNode, node, out var name, out var ordinal); 347CodeModelService.GetAttributeArgumentParentAndIndex(codeModelEvent.Node, out _, out var ordinal);
CodeModel\InternalElements\AbstractCodeElement.cs (9)
102return CodeModelService.GetName(node); 118return CodeModelService.GetFullName(node, semanticModel); 149var point = CodeModelService.GetStartPoint(LookupNode(), options); 164var point = CodeModelService.GetEndPoint(LookupNode(), options); 177var point = CodeModelService.GetStartPoint(LookupNode(), options, part); 189var point = CodeModelService.GetEndPoint(LookupNode(), options, part); 248CodeModelService.Rename(LookupSymbol(), newName, this.Workspace, this.State.ProjectCodeModelFactory); 254return CodeModelService.Delete(document, node); 270=> CodeModelService.GetPrototype(LookupNode(), LookupSymbol(), (PrototypeFlags)flags);
CodeModel\InternalElements\AbstractCodeMember.cs (14)
40=> LookupNode().Ancestors().Where(CodeModelService.IsType).FirstOrDefault(); 61return CodeModelService.GetAccess(node); 82var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 83return CodeModelService.GetComment(node); 96var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 97return CodeModelService.GetDocComment(node); 110var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 111return CodeModelService.GetIsGeneric(node); 119var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 120return CodeModelService.GetIsShared(node, LookupSymbol()); 133var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 134return CodeModelService.GetMustImplement(node); 147var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 148return CodeModelService.GetOverrideKind(node);
CodeModel\InternalElements\AbstractCodeType.cs (6)
40.Where(n => CodeModelService.IsNamespace(n) || CodeModelService.IsType(n)) 47.Where(n => CodeModelService.IsNamespace(n)) 55=> CodeModelService.GetTypeExtenderNames(); 58=> CodeModelService.GetTypeExtender(name, this); 95return CodeModelService.GetDataTypeKind(LookupNode(), (INamedTypeSymbol)LookupSymbol());
CodeModel\InternalElements\AbstractKeyedCodeElement.cs (3)
54=> CodeModelService.LookupNode(NodeKey, GetSyntaxTree()); 57=> CodeModelService.TryLookupNode(NodeKey, GetSyntaxTree(), out node); 70var newNodeKey = CodeModelService.GetNodeKey(node);
CodeModel\InternalElements\CodeAccessorFunction.cs (4)
57return CodeModelService.TryGetAutoPropertyExpressionBody(parentNode, out node) || 58CodeModelService.TryGetAccessorNode(parentNode, _kind, out node); 86return CodeModelService.GetAccess(node); 143return CodeModelService.GetFunctionKind(methodSymbol);
CodeModel\InternalElements\CodeAttribute.cs (3)
63if (!CodeModelService.TryGetAttributeNode(parentNode, _name, _ordinal, out var attributeNode)) 102return CodeModelService.GetAttributeTarget(LookupNode()); 115return CodeModelService.GetAttributeValue(LookupNode());
CodeModel\InternalElements\CodeAttributeArgument.cs (2)
63if (!CodeModelService.TryGetAttributeArgumentNode(attributeNode, _index, out var attributeArgumentNode)) 101return CodeModelService.GetAttributeArgumentValue(LookupNode());
CodeModel\InternalElements\CodeClass.cs (3)
73return this.CodeModelService.GetElementKind(LookupNode()); 110return CodeModelService.GetClassKind(LookupNode(), (INamedTypeSymbol)LookupSymbol()); 123return CodeModelService.GetInheritanceKind(LookupNode(), (INamedTypeSymbol)LookupSymbol());
CodeModel\InternalElements\CodeDelegate.cs (2)
70=> [.. CodeModelService.GetParameterNodes(LookupNode())]; 81return (EnvDTE.CodeClass)this.CodeModelService.CreateCodeType(
CodeModel\InternalElements\CodeEvent.cs (3)
99var node = this.CodeModelService.GetNodeWithModifiers(LookupNode()); 100return this.CodeModelService.GetIsPropertyStyleEvent(node); 127if (!CodeModelService.SupportsEventThrower)
CodeModel\InternalElements\CodeFunction.cs (5)
76=> [.. CodeModelService.GetParameterNodes(LookupNode())]; 79=> CodeModelService.GetFunctionExtenderNames(); 82=> CodeModelService.GetFunctionExtender(name, LookupNode(), LookupSymbol()); 93return CodeModelService.GetCanOverride(LookupNode()); 111return CodeModelService.GetFunctionKind(symbol);
CodeModel\InternalElements\CodeFunction.IMethodXML.cs (1)
21return CodeModelService.GetMethodXml(LookupNode(), GetSemanticModel());
CodeModel\InternalElements\CodeFunctionWithEventHandler.cs (4)
65return CodeModelService.AddHandlesClause(document, bstrEventName, node, CancellationToken.None); 78return CodeModelService.RemoveHandlesClause(document, bstrEventName, node, CancellationToken.None); 88var handledEvents = CodeModelService.GetHandledEventNames(node, semanticModel); 99result = CodeModelService.HandlesEvent(bstrEventName, node, semanticModel);
CodeModel\InternalElements\CodeImplementsStatement.cs (1)
77if (!CodeModelService.TryGetImplementsNode(parentNode, _namespaceName, _ordinal, out var implementsNode))
CodeModel\InternalElements\CodeImport.cs (5)
80if (!CodeModelService.TryGetImportNode(parentNode, _dottedName, out var importNode)) 119return CodeModelService.GetImportAlias(LookupNode()); 133return CodeModelService.GetImportNamespaceOrType(LookupNode()); 149=> CodeModelService.GetName(LookupNode()); 155=> CodeModelService.GetFullName(LookupNode(), semanticModel: null);
CodeModel\InternalElements\CodeInheritsStatement.cs (1)
77if (!CodeModelService.TryGetInheritsNode(parentNode, _namespaceName, _ordinal, out var inheritsNode))
CodeModel\InternalElements\CodeNamespace.cs (3)
63=> LookupNode().Ancestors().Where(CodeModelService.IsNamespace).FirstOrDefault(); 90return CodeModelService.GetComment(LookupNode()); 103return CodeModelService.GetDocComment(LookupNode());
CodeModel\InternalElements\CodeOptionsStatement.cs (1)
75if (!CodeModelService.TryGetOptionNode(parentNode, _name, _ordinal, out var optionNode))
CodeModel\InternalElements\CodeParameter.cs (5)
79return CodeModelService.GetParameterFullName(node); 92if (!CodeModelService.TryGetParameterNode(parentNode, _name, out var parameterNode)) 161return CodeModelService.GetParameterKind(LookupNode()); 174return CodeModelService.GetInitExpression(LookupNode()); 192=> this.ParameterKind = this.CodeModelService.UpdateParameterKind(ParameterKind, passingMode);
CodeModel\InternalElements\CodeProperty.cs (7)
74=> [.. CodeModelService.GetParameterNodes(LookupNode())]; 77=> CodeModelService.GetPropertyExtenderNames(); 80=> CodeModelService.GetPropertyExtender(name, LookupNode(), LookupSymbol()); 140=> CodeModelService.TryGetAccessorNode(LookupNode(), methodKind, out _); 143=> CodeModelService.IsExpressionBodiedProperty(LookupNode()); 203return CodeModelService.GetIsDefault(LookupNode()); 214get { return CodeModelService.GetReadWrite(LookupNode()); }
CodeModel\InternalElements\CodeVariable.cs (3)
87return CodeModelService.GetConstKind(LookupNode()); 105return CodeModelService.GetInitExpression(LookupNode()); 125return CodeModelService.GetIsConstant(LookupNode());
CodeModel\RootCodeModel.cs (4)
145var typeSymbol = CodeModelService.GetTypeSymbolFromFullName(name, compilation); 156return (EnvDTE.CodeType)CodeModelService.CreateCodeType(this.State, _projectId, typeSymbol); 160=> CodeModelService.CreateCodeTypeRef(this.State, _projectId, type); 172var typeSymbol = CodeModelService.GetTypeSymbolFromFullName(languageName, compilation);