Properties

Link copied to clipboard
abstract var _declarationBrand: Any?
Link copied to clipboard
abstract var _localsContainerBrand: Any?
Link copied to clipboard
Link copied to clipboard
abstract val end: Double
Link copied to clipboard
Link copied to clipboard
abstract var fileName: String
Link copied to clipboard
abstract val flags: NodeFlags
Link copied to clipboard
abstract var hasNoDefaultLib: Boolean

lib.d.ts should have a reference comment like

Link copied to clipboard

When module is Node16 or NodeNext, this field controls whether the source file in question is an ESNext-output-format file, or a CommonJS-output-format module. This is derived by the module resolver as it looks up the file, since it is derived from either the file extension of the module, or the containing package.json context, and affects both checking and emit.

Link copied to clipboard
Link copied to clipboard
abstract override val kind: SyntaxKind.SourceFile
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var moduleName: String?
Link copied to clipboard
abstract val parent: Node
Link copied to clipboard
abstract val pos: Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var text: String

Functions

Link copied to clipboard
abstract fun <T> forEachChild(cbNode: (node: Node) -> T?, cbNodeArray: (nodes: NodeArray<Node>) -> T? = definedExternally): T?
Link copied to clipboard
abstract fun getChildAt(index: Double, sourceFile: SourceFile = definedExternally): Node
Link copied to clipboard
abstract fun getChildCount(sourceFile: SourceFile = definedExternally): Double
Link copied to clipboard
abstract fun getChildren(sourceFile: SourceFile = definedExternally): ReadonlyArray<Node>
Link copied to clipboard
abstract fun getEnd(): Double
Link copied to clipboard
abstract fun getFirstToken(sourceFile: SourceFile = definedExternally): Node?
Link copied to clipboard
abstract fun getFullStart(): Double
Link copied to clipboard
abstract fun getFullText(sourceFile: SourceFile = definedExternally): String
Link copied to clipboard
abstract fun getFullWidth(): Double
Link copied to clipboard
abstract fun getLastToken(sourceFile: SourceFile = definedExternally): Node?
Link copied to clipboard
abstract fun getLeadingTriviaWidth(sourceFile: SourceFile = definedExternally): Double
Link copied to clipboard
abstract fun getLineEndOfPosition(pos: Double): Double
Link copied to clipboard
Link copied to clipboard
abstract fun getPositionOfLineAndCharacter(line: Double, character: Double): Double
Link copied to clipboard
abstract fun getSourceFile(): SourceFile
Link copied to clipboard
abstract fun getStart(sourceFile: SourceFile = definedExternally, includeJsDocComment: Boolean = definedExternally): Double
Link copied to clipboard
abstract fun getText(sourceFile: SourceFile = definedExternally): String
Link copied to clipboard
abstract fun getWidth(sourceFile: SourceFileLike = definedExternally): Double
Link copied to clipboard
abstract fun update(newText: String, textChangeRange: TextChangeRange): SourceFile