API Browser

Member group

GetMacroTokenInfo

Declaring type: SemanticModel
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: SemanticModel.AsyncStateMachine.cs, SemanticModel.Binding.cs, SemanticModel.Captures.cs, SemanticModel.ControlFlowAnalysis.cs, SemanticModel.DataFlowAnalysis.cs, SemanticModel.MacroExpansionDocument.cs, SemanticModel.MacroFragments.cs, SemanticModel.MatchExhaustiveness.cs, SemanticModel.MemberSignatures.cs, SemanticModel.MemberSymbolState.cs, SemanticModel.Operations.cs, SemanticModel.Scripting.cs, SemanticModel.cs

Overloads / Variants

GetMacroTokenInfo

func GetMacroTokenInfo(declaration: FreestandingMacroDeclarationSyntax, position: int, cancellationToken: CancellationToken = default) -> MacroTokenInfo?

Source file: SemanticModel.AsyncStateMachine.cs, SemanticModel.Binding.cs, SemanticModel.Captures.cs, SemanticModel.ControlFlowAnalysis.cs, SemanticModel.DataFlowAnalysis.cs, SemanticModel.MacroExpansionDocument.cs, SemanticModel.MacroFragments.cs, SemanticModel.MatchExhaustiveness.cs, SemanticModel.MemberSignatures.cs, SemanticModel.MemberSymbolState.cs, SemanticModel.Operations.cs, SemanticModel.Scripting.cs, SemanticModel.cs

Parameters

Name Type Description
declaration FreestandingMacroDeclarationSyntax
position Int32
cancellationToken CancellationToken

Return value

MacroTokenInfo?

GetMacroTokenInfo

func GetMacroTokenInfo(expression: FreestandingMacroExpressionSyntax, position: int, cancellationToken: CancellationToken = default) -> MacroTokenInfo?

Source file: SemanticModel.AsyncStateMachine.cs, SemanticModel.Binding.cs, SemanticModel.Captures.cs, SemanticModel.ControlFlowAnalysis.cs, SemanticModel.DataFlowAnalysis.cs, SemanticModel.MacroExpansionDocument.cs, SemanticModel.MacroFragments.cs, SemanticModel.MatchExhaustiveness.cs, SemanticModel.MemberSignatures.cs, SemanticModel.MemberSymbolState.cs, SemanticModel.Operations.cs, SemanticModel.Scripting.cs, SemanticModel.cs

Gets token metadata at an authored position inside a token-tree macro, including token-tree macros nested in reported Raven fragments.

Parameters

Name Type Description
expression FreestandingMacroExpressionSyntax
position Int32
cancellationToken CancellationToken

Return value

MacroTokenInfo?

GetMacroTokenInfo

func GetMacroTokenInfo(member: FreestandingMacroMemberDeclarationSyntax, position: int, cancellationToken: CancellationToken = default) -> MacroTokenInfo?

Source file: SemanticModel.AsyncStateMachine.cs, SemanticModel.Binding.cs, SemanticModel.Captures.cs, SemanticModel.ControlFlowAnalysis.cs, SemanticModel.DataFlowAnalysis.cs, SemanticModel.MacroExpansionDocument.cs, SemanticModel.MacroFragments.cs, SemanticModel.MatchExhaustiveness.cs, SemanticModel.MemberSignatures.cs, SemanticModel.MemberSymbolState.cs, SemanticModel.Operations.cs, SemanticModel.Scripting.cs, SemanticModel.cs

Parameters

Name Type Description
member FreestandingMacroMemberDeclarationSyntax
position Int32
cancellationToken CancellationToken

Return value

MacroTokenInfo?