(fileName: string, start: number, end: number)
| 127 | |
| 128 | /** Creates a source span from a known position. */ |
| 129 | export function createSpan(fileName: string, start: number, end: number): ParseSourceSpan { |
| 130 | const file = new ParseSourceFile('', fileName); |
| 131 | return new ParseSourceSpan( |
| 132 | new ParseLocation(file, start, 0, start), |
| 133 | new ParseLocation(file, end, 0, end), |
| 134 | ); |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Create a valid source span for use with host bindings. |
no outgoing calls
no test coverage detected