58 references to CreatePart
Microsoft.CodeAnalysis.CSharp (58)
SymbolDisplay\SymbolDisplayVisitor.cs (16)
157
Builder.Add(
CreatePart
(SymbolDisplayPartKind.AssemblyName, symbol, text));
162
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ModuleName, symbol, symbol.Name));
200
Builder.Add(
CreatePart
(SymbolDisplayPartKind.NamespaceName, symbol, symbol.Name));
216
Builder.Add(
CreatePart
(
223
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Keyword, globalNamespace,
229
Builder.Add(
CreatePart
(
275
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ConstantName, symbol, symbol.Name));
279
Builder.Add(
CreatePart
(SymbolDisplayPartKind.LocalName, symbol, symbol.Name));
303
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Punctuation, symbol, "_"));
318
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ErrorTypeName, type, "?"));
324
Builder.Add(
CreatePart
(SymbolDisplayPartKind.RangeVariableName, symbol, symbol.Name));
329
Builder.Add(
CreatePart
(SymbolDisplayPartKind.LabelName, symbol, symbol.Name));
334
Builder.Add(
CreatePart
(SymbolDisplayPartKind.AliasName, symbol, symbol.Name));
353
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Space, null, " "));
358
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Punctuation, null, SyntaxFacts.GetText(punctuationKind)));
363
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Keyword, null, SyntaxFacts.GetText(keywordKind)));
SymbolDisplay\SymbolDisplayVisitor.Members.cs (26)
72
Builder.Add(
CreatePart
(SymbolDisplayPartKind.EnumMemberName, symbol, symbol.Name));
76
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ConstantName, symbol, symbol.Name));
80
Builder.Add(
CreatePart
(SymbolDisplayPartKind.FieldName, symbol, symbol.Name));
214
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.PropertyName, symbol,
219
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.PropertyName, symbol, symbol.Name));
269
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.EventName, symbol,
274
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.EventName, symbol, symbol.Name));
284
Builder.Add(
CreatePart
(SymbolDisplayPartKind.NumericLiteral, symbol, "lambda expression"));
428
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.Name));
435
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ExtensionMethodName, symbol, symbol.Name));
479
Builder.Add(
CreatePart
(partKind, symbol, name));
489
Builder.Add(
CreatePart
(partKind, symbol, symbol.Name));
494
Builder.Add(
CreatePart
(partKind, symbol, symbol.ContainingType.Name));
524
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol,
533
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.MetadataName));
541
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.Name));
554
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.MetadataName));
562
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.Name));
601
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Cdecl"));
604
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Stdcall"));
607
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Thiscall"));
610
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Fastcall"));
627
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, conventionType, conventionType.Name[CallConvLength..]));
710
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Operator, symbol,
858
Builder.Add(
CreatePart
(kind, symbol, symbol.Name));
1075
this.Builder.Add(
CreatePart
(InternalSymbolDisplayPartKind.Other, null, customModifier.IsOptional ? IL_KEYWORD_MODOPT : IL_KEYWORD_MODREQ));
SymbolDisplay\SymbolDisplayVisitor.Types.cs (13)
164
Builder.Add(
CreatePart
(SymbolDisplayPartKind.TypeParameterName, symbol, symbol.Name));
171
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Keyword, symbol, symbol.Name));
182
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ModuleName, symbol, fileLocalNamePrefix));
195
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Punctuation, symbol, "@"));
196
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ModuleName, symbol, fileDescription));
377
Builder.Add(
CreatePart
(partKind, symbol, "?"));
382
Builder.Add(
CreatePart
(partKind, symbol, symbolName));
391
Builder.Add(
CreatePart
(InternalSymbolDisplayPartKind.Arity, null,
428
Builder.Add(
CreatePart
(InternalSymbolDisplayPartKind.Other, symbol, "missing"));
543
Builder.Add(
CreatePart
(SymbolDisplayPartKind.StructName, symbol, "<tuple>"));
564
Builder.Add(
CreatePart
(SymbolDisplayPartKind.FieldName, element, element.Name));
575
Builder.Add(
CreatePart
(InternalSymbolDisplayPartKind.Other, symbol, "missing"));
631
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Keyword, symbol, specialTypeName));
SymbolDisplay\SymbolDisplayVisitor_Constants.cs (1)
61
this.Builder.Add(
CreatePart
(kind, null, valueString));
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (2)
39
builder.Add(
CreatePart
(SymbolDisplayPartKind.AliasName, alias, aliasName));
113
Builder.Add(
CreatePart
(SymbolDisplayPartKind.NamespaceName, symbol, symbol.Name));