110 references to PrototypeFlags
Microsoft.VisualStudio.LanguageServices.CSharp (106)
CodeModel\CSharpCodeModelService_Prototype.cs (106)
21public override string GetPrototype(SyntaxNode node, ISymbol symbol, PrototypeFlags flags) 74private string GetDelegatePrototype(INamedTypeSymbol symbol, PrototypeFlags flags) 76if ((flags & PrototypeFlags.Signature) != 0) 78if (flags != PrototypeFlags.Signature) 96private string GetDelegatePrototype(DelegateDeclarationSyntax node, INamedTypeSymbol symbol, PrototypeFlags flags) 98if ((flags & PrototypeFlags.Signature) != 0) 100if (flags != PrototypeFlags.Signature) 117private string GetEventPrototype(IEventSymbol symbol, PrototypeFlags flags) 119if ((flags & PrototypeFlags.Signature) != 0) 121if (flags != PrototypeFlags.Signature) 128flags = PrototypeFlags.FullName | PrototypeFlags.Type; 138private string GetFunctionPrototype(IMethodSymbol symbol, PrototypeFlags flags) 140if ((flags & PrototypeFlags.Signature) != 0) 142if (flags != PrototypeFlags.Signature) 149flags = PrototypeFlags.FullName | PrototypeFlags.Type | PrototypeFlags.ParameterTypes; 159private string GetFunctionPrototype(BaseMethodDeclarationSyntax node, IMethodSymbol symbol, PrototypeFlags flags) 161if ((flags & PrototypeFlags.Signature) != 0) 163if (flags != PrototypeFlags.Signature) 180private string GetPropertyPrototype(IPropertySymbol symbol, PrototypeFlags flags) 182if ((flags & PrototypeFlags.Signature) != 0) 184if (flags != PrototypeFlags.Signature) 191flags = PrototypeFlags.FullName | PrototypeFlags.Type; 201private string GetPropertyPrototype(BasePropertyDeclarationSyntax node, IPropertySymbol symbol, PrototypeFlags flags) 203if ((flags & PrototypeFlags.Signature) != 0) 205if (flags != PrototypeFlags.Signature) 222private string GetVariablePrototype(IFieldSymbol symbol, PrototypeFlags flags) 224if ((flags & PrototypeFlags.Signature) != 0) 226if (flags != PrototypeFlags.Signature) 233flags = PrototypeFlags.FullName | PrototypeFlags.Type; 243private string GetVariablePrototype(VariableDeclaratorSyntax node, IFieldSymbol symbol, PrototypeFlags flags) 245if ((flags & PrototypeFlags.Signature) != 0) 247if (flags != PrototypeFlags.Signature) 261if ((flags & PrototypeFlags.Initializer) != 0 && 273private string GetVariablePrototype(EnumMemberDeclarationSyntax node, IFieldSymbol symbol, PrototypeFlags flags) 275if ((flags & PrototypeFlags.Signature) != 0) 277if (flags != PrototypeFlags.Signature) 291if ((flags & PrototypeFlags.Initializer) != 0 && 303private void AppendDelegatePrototype(StringBuilder builder, INamedTypeSymbol symbol, PrototypeFlags flags, string baseName) 307if ((flags & PrototypeFlags.Type) != 0) 311if (((flags & PrototypeFlags.NameMask) != PrototypeFlags.NoName) || 312((flags & (PrototypeFlags.ParameterNames | PrototypeFlags.ParameterTypes)) != 0)) 320switch (flags & PrototypeFlags.NameMask) 322case PrototypeFlags.FullName: 325goto case PrototypeFlags.BaseName; 327case PrototypeFlags.TypeName: 330goto case PrototypeFlags.BaseName; 332case PrototypeFlags.BaseName: 336case PrototypeFlags.NoName: 341if ((flags & (PrototypeFlags.ParameterNames | PrototypeFlags.ParameterTypes)) != 0) 356private void AppendEventPrototype(StringBuilder builder, IEventSymbol symbol, PrototypeFlags flags, string baseName) 358if ((flags & PrototypeFlags.Type) != 0) 362if ((flags & PrototypeFlags.NameMask) != PrototypeFlags.NoName) 368switch (flags & PrototypeFlags.NameMask) 370case PrototypeFlags.FullName: 373goto case PrototypeFlags.BaseName; 375case PrototypeFlags.TypeName: 378goto case PrototypeFlags.BaseName; 380case PrototypeFlags.BaseName: 386private void AppendFunctionPrototype(StringBuilder builder, IMethodSymbol symbol, PrototypeFlags flags, string baseName) 388if ((flags & PrototypeFlags.Type) != 0) 392if ((flags & PrototypeFlags.NameMask) != PrototypeFlags.NoName) 400switch (flags & PrototypeFlags.NameMask) 402case PrototypeFlags.FullName: 405goto case PrototypeFlags.BaseName; 407case PrototypeFlags.TypeName: 410goto case PrototypeFlags.BaseName; 412case PrototypeFlags.BaseName: 416case PrototypeFlags.NoName: 421if ((flags & (PrototypeFlags.ParameterNames | PrototypeFlags.ParameterTypes)) != 0) 436private void AppendPropertyPrototype(StringBuilder builder, IPropertySymbol symbol, PrototypeFlags flags, string baseName) 438if ((flags & PrototypeFlags.Type) != 0) 442if ((flags & PrototypeFlags.NameMask) != PrototypeFlags.NoName) 448switch (flags & PrototypeFlags.NameMask) 450case PrototypeFlags.FullName: 453goto case PrototypeFlags.BaseName; 455case PrototypeFlags.TypeName: 458goto case PrototypeFlags.BaseName; 460case PrototypeFlags.BaseName: 464AppendParametersPrototype(builder, symbol.Parameters, PrototypeFlags.ParameterTypes | PrototypeFlags.ParameterNames); 476private void AppendVariablePrototype(StringBuilder builder, IFieldSymbol symbol, PrototypeFlags flags, string baseName) 478if ((flags & PrototypeFlags.Type) != 0) 482if ((flags & PrototypeFlags.NameMask) != PrototypeFlags.NoName) 488switch (flags & PrototypeFlags.NameMask) 490case PrototypeFlags.FullName: 493goto case PrototypeFlags.BaseName; 495case PrototypeFlags.TypeName: 498goto case PrototypeFlags.BaseName; 500case PrototypeFlags.BaseName: 506private void AppendParametersPrototype(StringBuilder builder, ImmutableArray<IParameterSymbol> parameters, PrototypeFlags flags) 522private void AppendParameterPrototype(StringBuilder builder, PrototypeFlags flags, IParameterSymbol parameter) 525if ((flags & PrototypeFlags.ParameterTypes) != 0) 544if ((flags & PrototypeFlags.ParameterNames) != 0)
Microsoft.VisualStudio.LanguageServices.Implementation (4)
CodeModel\AbstractCodeModelService.cs (1)
1302public abstract string GetPrototype(SyntaxNode node, ISymbol symbol, PrototypeFlags flags);
CodeModel\ExternalElements\AbstractExternalCodeElement.cs (1)
317=> CodeModelService.GetPrototype(null, LookupSymbol(), (PrototypeFlags)flags);
CodeModel\ICodeModelService.cs (1)
376string GetPrototype(SyntaxNode node, ISymbol symbol, PrototypeFlags flags);
CodeModel\InternalElements\AbstractCodeElement.cs (1)
270=> CodeModelService.GetPrototype(LookupNode(), LookupSymbol(), (PrototypeFlags)flags);