MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeSource­Span
Open sandboxFocus

SourceSpan Class

Represents a span of source code.

Inheritance
System.Object
SourceSpan
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class SourceSpan : ValueType

Properties

Name Description
EndColumn

Gets the start end (zero-based).

EndLine

Gets the end line (zero-based).

FilePath

Gets the path of the source file.

StartColumn

Gets the start column (zero-based).

StartLine

Gets the start line (zero-based).

Methods

Name Description
GetText()

Gets the text representation (i.e. the source code) of the current syntax node or token.

ToString()