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