Base:
method
LookupNode
Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.InternalElements.AbstractCodeElement.LookupNode()
78 references to LookupNode
Microsoft.VisualStudio.LanguageServices.Implementation (78)
CodeModel\Collections\ParameterCollection.cs (1)
55var parentNode = this.ParentElement.LookupNode();
CodeModel\FileCodeModel.cs (1)
689var node = element.LookupNode();
CodeModel\InternalElements\AbstractCodeMember.cs (11)
40=> LookupNode().Ancestors().Where(CodeModelService.IsType).FirstOrDefault(); 60var node = LookupNode(); 82var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 96var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 110var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 119var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 133var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 147var node = CodeModelService.GetNodeWithModifiers(LookupNode()); 171var node = LookupNode(); 188var node = LookupNode(); 210return FileCodeModel.AddAttribute(LookupNode(), name, value, position);
CodeModel\InternalElements\AbstractCodeType.cs (7)
39return LookupNode().Ancestors() 46return LookupNode().Ancestors() 95return CodeModelService.GetDataTypeKind(LookupNode(), (INamedTypeSymbol)LookupSymbol()); 197FileCodeModel.AddBase(LookupNode(), @base, position); 215var name = FileCodeModel.AddImplementedInterface(LookupNode(), @base, position); 233FileCodeModel.RemoveBase(LookupNode(), element); 241FileCodeModel.RemoveImplementedInterface(LookupNode(), element);
CodeModel\InternalElements\AbstractKeyedCodeElement.cs (2)
83var node = LookupNode(); 118var node = LookupNode();
CodeModel\InternalElements\CodeAccessorFunction.cs (1)
51var parentNode = _parentHandle.Value.LookupNode();
CodeModel\InternalElements\CodeClass.cs (11)
73return this.CodeModelService.GetElementKind(LookupNode()); 110return CodeModelService.GetClassKind(LookupNode(), (INamedTypeSymbol)LookupSymbol()); 123return CodeModelService.GetInheritanceKind(LookupNode(), (INamedTypeSymbol)LookupSymbol()); 146return FileCodeModel.AddClass(LookupNode(), name, position, bases, implementedInterfaces, access); 154return FileCodeModel.AddDelegate(LookupNode(), name, type, position, access); 162return FileCodeModel.AddEnum(LookupNode(), name, position, bases, access); 170return FileCodeModel.AddEvent(LookupNode(), name, fullDelegateName, createPropertyStyleEvent, location, access); 178return FileCodeModel.AddFunction(LookupNode(), name, kind, type, position, access); 186return FileCodeModel.AddProperty(LookupNode(), getterName, putterName, type, position, access); 194return FileCodeModel.AddStruct(LookupNode(), name, position, bases, implementedInterfaces, access); 204return FileCodeModel.AddVariable(LookupNode(), name, type, position, access);
CodeModel\InternalElements\CodeDelegate.cs (1)
70=> [.. CodeModelService.GetParameterNodes(LookupNode())];
CodeModel\InternalElements\CodeEnum.cs (1)
67return FileCodeModel.AddEnumMember(LookupNode(), name, value, position);
CodeModel\InternalElements\CodeEvent.cs (1)
99var node = this.CodeModelService.GetNodeWithModifiers(LookupNode());
CodeModel\InternalElements\CodeFunction.cs (3)
76=> [.. CodeModelService.GetParameterNodes(LookupNode())]; 82=> CodeModelService.GetFunctionExtender(name, LookupNode(), LookupSymbol()); 93return CodeModelService.GetCanOverride(LookupNode());
CodeModel\InternalElements\CodeFunction.IMethodXML.cs (1)
21return CodeModelService.GetMethodXml(LookupNode(), GetSemanticModel());
CodeModel\InternalElements\CodeFunctionWithEventHandler.cs (4)
60var node = LookupNode(); 73var node = LookupNode(); 86var node = LookupNode(); 96var node = LookupNode();
CodeModel\InternalElements\CodeImplementsStatement.cs (1)
71var parentNode = _parentHandle.Value.LookupNode();
CodeModel\InternalElements\CodeInheritsStatement.cs (1)
71var parentNode = _parentHandle.Value.LookupNode();
CodeModel\InternalElements\CodeInterface.cs (3)
68return FileCodeModel.AddFunction(LookupNode(), name, kind, type, position, access); 76return FileCodeModel.AddProperty(LookupNode(), getterName, putterName, type, position, access); 85return FileCodeModel.AddEvent(LookupNode(), name, fullDelegateName, false, position, access);
CodeModel\InternalElements\CodeNamespace.cs (9)
63=> LookupNode().Ancestors().Where(CodeModelService.IsNamespace).FirstOrDefault(); 90return CodeModelService.GetComment(LookupNode()); 103return CodeModelService.GetDocComment(LookupNode()); 129return FileCodeModel.AddClass(LookupNode(), name, position, bases, implementedInterfaces, access); 137return FileCodeModel.AddDelegate(LookupNode(), name, type, position, access); 145return FileCodeModel.AddEnum(LookupNode(), name, position, bases, access); 153return FileCodeModel.AddInterface(LookupNode(), name, position, bases, access); 161return FileCodeModel.AddNamespace(LookupNode(), name, position); 169return FileCodeModel.AddStruct(LookupNode(), name, position, bases, implementedInterfaces, access);
CodeModel\InternalElements\CodeParameter.cs (2)
54var parentNode = _parentHandle.Value.LookupNode(); 86var parentNode = _parentHandle.Value.LookupNode();
CodeModel\InternalElements\CodeProperty.cs (6)
74=> [.. CodeModelService.GetParameterNodes(LookupNode())]; 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\CodeStruct.cs (8)
90return FileCodeModel.AddClass(LookupNode(), name, position, bases, implementedInterfaces, access); 98return FileCodeModel.AddDelegate(LookupNode(), name, type, position, access); 106return FileCodeModel.AddEnum(LookupNode(), name, position, bases, access); 114return FileCodeModel.AddEvent(LookupNode(), name, fullDelegateName, createPropertyStyleEvent, position, access); 122return FileCodeModel.AddFunction(LookupNode(), name, kind, type, position, access); 130return FileCodeModel.AddProperty(LookupNode(), getterName, putterName, type, position, access); 138return FileCodeModel.AddStruct(LookupNode(), name, position, bases, implementedInterfaces, access); 146return FileCodeModel.AddVariable(LookupNode(), name, type, position, access);
CodeModel\InternalElements\CodeVariable.cs (3)
87return CodeModelService.GetConstKind(LookupNode()); 105return CodeModelService.GetInitExpression(LookupNode()); 125return CodeModelService.GetIsConstant(LookupNode());