Class SourceLocation
Data model that implements the contract ISourceLocation
Implements
Inherited Members
Namespace: CodeFactory.SourceCode
Assembly: CodeFactory.dll
Syntax
public class SourceLocation : ISourceLocation
Properties
| Improve this Doc View SourceEndLocation
Declaration
public DocumentLocation EndLocation { get; }
Property Value
Type | Description |
---|---|
DocumentLocation |
StartLocation
Declaration
public DocumentLocation StartLocation { get; }
Property Value
Type | Description |
---|---|
DocumentLocation |
Methods
| Improve this Doc View SourceInit(int, int, int, int)
Create a instance of the SourceLocation data class.
Declaration
public static ISourceLocation Init(int startLine, int startPosition, int endLine, int endPosition)
Parameters
Type | Name | Description |
---|---|---|
int | startLine | The starting line number for the source. |
int | startPosition | The starting character position for the source. |
int | endLine | The end line number for the source. |
int | endPosition | The end character position for the source. |
Returns
Type | Description |
---|---|
ISourceLocation | New instance of the SourceLocation returned as ISourceLocation. |