createSourceFile

external fun createSourceFile(fileName: String, sourceText: String, languageVersionOrOptions: ScriptTarget, setParentNodes: Boolean = definedExternally, scriptKind: ScriptKind = definedExternally): SourceFile(source)
external fun createSourceFile(fileName: String, sourceText: String, languageVersionOrOptions: CreateSourceFileOptions, setParentNodes: Boolean = definedExternally, scriptKind: ScriptKind = definedExternally): SourceFile(source)