CSharpSymbol
This is the base type for all symbols in C#.
Many subtypes of this symbol exist for specific purposes. However, this symbol may be used in cases where a more specific symbol is not required.
Members
Section titled “Members”Extends OutputSymbol
| constructor | (name: string | Namekey, spaces: OutputSpace[] | OutputSpace | undefined, options: CSharpSymbolOptions) | Constructs a new instance of the CSharpSymbol class |
| accessibility | DeclaredAccessibility | undefined | |
| copy | () => CSharpSymbol | |
| debugInfo | Record<string, unknown> | |
| enclosingNamespace | NamespaceSymbol | undefined | |
| isAbstract | boolean | Whether this symbol is abstract. |
| isExtern | boolean | Whether this symbol is extern. |
| isNullable | boolean | Whether this symbol might contain null. True if this symbol has a typeSymbol and that symbol is nullable, or else when this symbol has the nullable option set. |
| isOverride | boolean | Whether this symbol is override. |
| isReadOnly | boolean | Whether this symbol is readonly. |
| isSealed | boolean | Whether this symbol is sealed. |
| isStatic | boolean | Whether this symbol is static. |
| isVirtual | boolean | Whether this symbol is virtual. |
| symbolKind | CSharpSymbolKinds |
Remarks
Section titled “Remarks”This is roughly equivalent to the Roslyn ISymbol interface: https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.isymbol?view=roslyn-dotnet-4.13.0