GetMacroFragmentSemanticInfo
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
GetMacroFragmentSemanticInfo
func GetMacroFragmentSemanticInfo(declaration: FreestandingMacroDeclarationSyntax, position: int, cancellationToken: CancellationToken = default) -> MacroFragmentSemanticInfo?
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 ordinary Raven semantic information at an authored position inside a declaration-shaped macro fragment.
Parameters
| Name | Type | Description |
|---|---|---|
declaration |
FreestandingMacroDeclarationSyntax | |
position |
Int32 | |
cancellationToken |
CancellationToken |
Return value
GetMacroFragmentSemanticInfo
func GetMacroFragmentSemanticInfo(expression: FreestandingMacroExpressionSyntax, position: int, cancellationToken: CancellationToken = default) -> MacroFragmentSemanticInfo?
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 ordinary Raven semantic information at an authored position inside a fragment reported by a token-tree macro.
Parameters
| Name | Type | Description |
|---|---|---|
expression |
FreestandingMacroExpressionSyntax | |
position |
Int32 | |
cancellationToken |
CancellationToken |
Return value
GetMacroFragmentSemanticInfo
func GetMacroFragmentSemanticInfo(member: FreestandingMacroMemberDeclarationSyntax, position: int, cancellationToken: CancellationToken = default) -> MacroFragmentSemanticInfo?
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 |