Class
FreestandingMacroContext
class FreestandingMacroContext
Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: FreestandingMacroContext.cs
Inheritance: Object → MacroContext → FreestandingMacroContext
Constructors
3 items
FreestandingMacroContext(compilation: Compilation, semanticModel: SemanticModel, syntax: FreestandingMacroDeclarationSyntax, cancellationToken?: CancellationToken)
No summary available.
Properties
12 items
ArgumentList: ArgumentListSyntax?
No summary available.
Arguments: ImmutableArray<MacroArgument>
No summary available.
CancellationToken: CancellationToken
No summary available.
Carrier: MacroCarrierSyntax
No summary available.
Compilation: Compilation
No summary available.
DeclarationHeader: MacroDeclarationHeaderSyntax?
No summary available.
ExclamationToken: SyntaxToken
No summary available.
ExpressionArgument: ExpressionSyntax?
No summary available.
Name: NameSyntax
No summary available.
SemanticModel: SemanticModel
No summary available.
Syntax: SyntaxNode
No summary available.
TokenTree: MacroTokenTreeSyntax?
No summary available.
Methods
16 items
CreateArgumentDiagnostic(argument: MacroArgument, message: string, severity?: DiagnosticSeverity, code?: string?) -> MacroExpansionDiagnostic
No summary available.
CreateDiagnostic(message: string, severity?: DiagnosticSeverity, syntax?: SyntaxNode?, code?: string?) -> MacroExpansionDiagnostic
No summary available.
Overrides MacroContext.CreateDiagnostic
CreateUniqueIdentifier(hint?: string) -> IdentifierNameSyntax
Creates identifier-name syntax with a deterministic name that does not collide with authored or previously generated identifiers.
Inherited from MacroContext.CreateUniqueIdentifier
CreateUniqueName(hint?: string) -> string
Creates a deterministic identifier name that does not collide with an identifier authored in the invocation document or returned earlier by this context.
Inherited from MacroContext.CreateUniqueName
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
ReadFile(path: string) -> MacroFileReadResult
Reads a text file relative to the invoking source file and observes it as an input to the cached macro expansion.
ReportDiagnostic(diagnostic: Diagnostic) -> ()
No summary available.
Inherited from MacroContext.ReportDiagnostic
ReportDiagnostic(diagnostic: MacroExpansionDiagnostic) -> ()
No summary available.
Inherited from MacroContext.ReportDiagnostic
ReportDiagnostic(message: string, severity?: DiagnosticSeverity, syntax?: SyntaxNode?, code?: string?) -> ()
No summary available.
Inherited from MacroContext.ReportDiagnostic
ReportDiagnostics(diagnostics: IEnumerable<Diagnostic>) -> ()
No summary available.
Inherited from MacroContext.ReportDiagnostics
ReportDiagnostics(diagnostics: IEnumerable<MacroExpansionDiagnostic>) -> ()
No summary available.
Inherited from MacroContext.ReportDiagnostics
ReportDiagnostics<TSyntax>(result: MacroSyntaxParseResult<TSyntax>) -> ()
Reports all parser diagnostics carried by a macro syntax parse result.
Inherited from MacroContext.ReportDiagnostics
RequireSyntax<TSyntax>(syntax: SyntaxNode, message?: string?, code?: string?) -> TSyntax
Requires a syntax node to have the requested shape, reporting a macro diagnostic and returning when it does not.
Inherited from MacroContext.RequireSyntax
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString