TsConfigSourceFile

Properties

Link copied to clipboard
abstract external var _declarationBrand: Any?
Link copied to clipboard
abstract external var _localsContainerBrand: Any?
Link copied to clipboard
Link copied to clipboard
abstract external val end: Double
Link copied to clipboard
Link copied to clipboard
abstract external var extendedSourceFiles: ReadonlyArray<String>?
Link copied to clipboard
abstract external var fileName: String
Link copied to clipboard
abstract external val flags: NodeFlags
Link copied to clipboard
abstract external var hasNoDefaultLib: Boolean
Link copied to clipboard
abstract external var impliedNodeFormat: ResolutionMode

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
abstract external var isDeclarationFile: Boolean
Link copied to clipboard
abstract external override val kind: SyntaxKind.SourceFile
Link copied to clipboard
abstract external var languageVariant: LanguageVariant
Link copied to clipboard
abstract external var languageVersion: ScriptTarget
Link copied to clipboard
Link copied to clipboard
abstract external var moduleName: String?
Link copied to clipboard
abstract external val parent: Node
Link copied to clipboard
abstract external val pos: Double
Link copied to clipboard
Link copied to clipboard
abstract external override val statements: NodeArray<JsonObjectExpressionStatement>
Link copied to clipboard
abstract external var text: String
Link copied to clipboard

Functions

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