GetMacroEmbeddedLanguageProjection
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
GetMacroEmbeddedLanguageProjection
func GetMacroEmbeddedLanguageProjection(declaration: FreestandingMacroDeclarationSyntax, cancellationToken: CancellationToken = default) -> MacroEmbeddedLanguageProjection?
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 | |
cancellationToken |
CancellationToken |
Return value
MacroEmbeddedLanguageProjection?
GetMacroEmbeddedLanguageProjection
func GetMacroEmbeddedLanguageProjection(expression: FreestandingMacroExpressionSyntax, cancellationToken: CancellationToken = default) -> MacroEmbeddedLanguageProjection?
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 a position-preserving embedded-language projection for a token-tree macro invocation.
Parameters
| Name | Type | Description |
|---|---|---|
expression |
FreestandingMacroExpressionSyntax | |
cancellationToken |
CancellationToken |
Return value
MacroEmbeddedLanguageProjection?
GetMacroEmbeddedLanguageProjection
func GetMacroEmbeddedLanguageProjection(member: FreestandingMacroMemberDeclarationSyntax, cancellationToken: CancellationToken = default) -> MacroEmbeddedLanguageProjection?
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 | |
cancellationToken |
CancellationToken |
Return value
MacroEmbeddedLanguageProjection?
GetMacroEmbeddedLanguageProjection
func GetMacroEmbeddedLanguageProjection(position: int, cancellationToken: CancellationToken = default) -> MacroEmbeddedLanguageProjection?
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 the embedded-language projection that owns an authored position, including a projection from a nested macro inside a reported Raven fragment.
Parameters
| Name | Type | Description |
|---|---|---|
position |
Int32 | |
cancellationToken |
CancellationToken |