API Browser

Class

MacroContext

class MacroContext

Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: MacroContext.cs

Inheritance: Object → MacroContext

Provides diagnostics shared by all macro invocation contexts.

Derived types

Documented types in this API reference. Indirect relationships are marked.

Constructors

1 item
MacroContext(invocationSyntax: SyntaxNode) No summary available.

Methods

14 items
CreateUniqueIdentifier(hint?: string) -> IdentifierNameSyntax Creates identifier-name syntax with a deterministic name that does not collide with authored or previously generated identifiers.
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.
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
ReportDiagnostics<TSyntax>(result: MacroSyntaxParseResult<TSyntax>) -> () Reports all parser diagnostics carried by a macro syntax parse result.
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.
ToString() -> string? Returns a string that represents the current object. Inherited from Object.ToString