create

fun create(start: Int = 0, end: Int = 0, ctxt: Int = 0): Span

Create a Span object with specified start, end, and context values.

A Span represents a location in the source code. It's used throughout the AST to track where each node appears in the original source.

This method is available as a static method in Java.

Return

Configured Span object

Parameters

start

Starting byte position in the source code (default: 0)

end

Ending byte position in the source code (default: 0)

ctxt

Syntax context, used for macro expansion tracking (default: 0)