Skip to content

[F] createSourceFile

function createSourceFile(text, path): SourceFile;

Wrap source text and its path with lazily computed line-start and zero-based position lookups.

ParameterType
textstring
pathstring

SourceFile