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));
346
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Space, null, " "));
351
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Punctuation, null, SyntaxFacts.GetText(punctuationKind)));
356
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Keyword, null, SyntaxFacts.GetText(keywordKind)));
SymbolDisplay\SymbolDisplayVisitor.Members.cs (26)
64
Builder.Add(
CreatePart
(SymbolDisplayPartKind.EnumMemberName, symbol, symbol.Name));
68
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ConstantName, symbol, symbol.Name));
72
Builder.Add(
CreatePart
(SymbolDisplayPartKind.FieldName, symbol, symbol.Name));
206
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.PropertyName, symbol,
211
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.PropertyName, symbol, symbol.Name));
261
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.EventName, symbol,
266
this.Builder.Add(
CreatePart
(SymbolDisplayPartKind.EventName, symbol, symbol.Name));
276
Builder.Add(
CreatePart
(SymbolDisplayPartKind.NumericLiteral, symbol, "lambda expression"));
420
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.Name));
427
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ExtensionMethodName, symbol, symbol.Name));
471
Builder.Add(
CreatePart
(partKind, symbol, name));
481
Builder.Add(
CreatePart
(partKind, symbol, symbol.Name));
486
Builder.Add(
CreatePart
(partKind, symbol, symbol.ContainingType.Name));
516
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol,
525
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.MetadataName));
533
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.Name));
546
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.MetadataName));
554
Builder.Add(
CreatePart
(SymbolDisplayPartKind.MethodName, symbol, symbol.Name));
593
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Cdecl"));
596
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Stdcall"));
599
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Thiscall"));
602
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, symbol, "Fastcall"));
619
Builder.Add(
CreatePart
(SymbolDisplayPartKind.ClassName, conventionType, conventionType.Name[CallConvLength..]));
702
Builder.Add(
CreatePart
(SymbolDisplayPartKind.Operator, symbol,
850
Builder.Add(
CreatePart
(kind, symbol, symbol.Name));
1067
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));