Home
last modified time | relevance | path

Searched refs:scriptKind (Results 1 – 25 of 38) sorted by relevance

12

/third_party/typescript/src/services/
DdocumentRegistry.ts37 scriptKind?: ScriptKind): SourceFile;
46 scriptKind?: ScriptKind): SourceFile;
65 scriptKind?: ScriptKind): SourceFile;
74 scriptKind?: ScriptKind): SourceFile;
143 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
146 …uireDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind);
149 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
150 …fileName, path, compilationSettings, key, scriptSnapshot, version, /*acquiring*/ true, scriptKind);
153 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
156 …dateDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind);
[all …]
Dtranspile.ts51 const scriptKind = ensureScriptKind(inputFileName, /*setScriptKind*/ undefined); constant
52 …e(inputFileName, input, options.target!, /*setParentNodes*/ undefined, scriptKind, options); // TO…
Dservices.ts644 public scriptKind!: ScriptKind;
888 scriptKind: ScriptKind; property
986 scriptKind: getScriptKind(fileName, this.host)
1048 const scriptKind = getScriptKind(fileName, this.host); constant
1054 …scriptSnapshot, ScriptTarget.Latest, version, /*setNodeParents*/ true, scriptKind, this.host.getCo…
1079 … scriptTarget: ScriptTarget, version: string, setNodeParents: boolean, scriptKind?: ScriptKind, op…
1080 …eFile(fileName, getSnapshotText(scriptSnapshot), scriptTarget, setNodeParents, scriptKind, option);
1137 …shot, sourceFile.languageVersion, version, /*setNodeParents*/ true, sourceFile.scriptKind, option);
1471 …Debug.assertEqual(hostFileInformation.scriptKind, oldSourceFile.scriptKind, "Registered script kin…
1473 …, hostFileInformation.scriptSnapshot, hostFileInformation.version, hostFileInformation.scriptKind);
[all …]
DtextChanges.ts897 …export function getNewFileText(statements: readonly Statement[], scriptKind: ScriptKind, newLineCh…
898 …return changesToText.newFileChangesWorker(/*oldFile*/ undefined, scriptKind, statements, newLineCh…
935 …export function newFileChangesWorker(oldFile: SourceFile | undefined, scriptKind: ScriptKind, stat…
938 …eFile("any file name", nonFormattedText, ScriptTarget.ESNext, /*setParentNodes*/ true, scriptKind);
Dutilities.ts454 const scriptKind = getNodeKind((node as ExportAssignment).expression); constant
456 … return scriptKind === ScriptElementKind.unknown ? ScriptElementKind.constElement : scriptKind;
/third_party/typescript/src/server/
DscriptInfo.ts334 readonly scriptKind: ScriptKind,
345 this.scriptKind = scriptKind
346 ? scriptKind
645 return this.scriptKind === ScriptKind.JS || this.scriptKind === ScriptKind.JSX;
DeditorServices.ts344 result = info.scriptKind;
358 getScriptKind: x => tryConvertScriptKindName(x.scriptKind!), // TODO: GH#18217
636 scriptKind?: protocol.ScriptKindName | ScriptKind; property
2211 … const scriptKind = propertyReader.getScriptKind(f, this.hostConfiguration.extraFileExtensions); constant
2216 scriptKind,
2597 …tForNormalizedPath(fileName: NormalizedPath, currentDirectory: string, scriptKind: ScriptKind | un…
2599 …currentDirectory, /*openedByClient*/ false, /*fileContent*/ undefined, scriptKind, hasMixedContent…
2614 …alizedPath, currentDirectory: string, fileContent: string | undefined, scriptKind: ScriptKind | un…
2615 …rker(fileName, currentDirectory, /*openedByClient*/ true, fileContent, scriptKind, hasMixedContent…
2618 …leName: NormalizedPath, openedByClient: boolean, fileContent?: string, scriptKind?: ScriptKind, ha…
[all …]
Dproject.ts27 switch (info.scriptKind) {
447 return (info && info.scriptKind)!; // TODO: GH#18217
Dprotocol.ts1331 scriptKind?: ScriptKindName | ts.ScriptKind; property
/third_party/typescript/src/testRunner/unittests/tsserver/
DtypeAquisition.ts16 …ternalFile(file2.path), { fileName: file1.path, hasMixedContent: true, scriptKind: ScriptKind.JS }…
Dprojects.ts583 scriptKind: "JS" as "JS"
696 …const extraFileExtensions = [{ extension: ".html", scriptKind: ScriptKind.JS, isMixedContent: true…
709 scriptKind: ScriptKind.JS,
757 …const extraFileExtensions = [{ extension: ".html", scriptKind: ScriptKind.JS, isMixedContent: true…
880 …ct({ projectFileName, options: {}, rootFiles: [{ fileName: file1.path, scriptKind: ScriptKind.JS, …
1214 …const extraFileExtensions = [{ extension: ".deferred", scriptKind: ScriptKind.Deferred, isMixedCon…
DexternalProjects.ts875 …service.applyChangesInOpenFiles(singleIterator({ fileName: jsFilePath, scriptKind: ScriptKind.JS, …
/third_party/typescript/src/testRunner/unittests/
DprogramApi.ts175 assert.equal(json.scriptKind, ScriptKind.JSON);
/third_party/typescript_eslint/packages/typescript-estree/tests/lib/__snapshots__/
Dconvert.test.ts.snap61 "scriptKind": 4,
/third_party/typescript/src/testRunner/unittests/tscWatch/
DwatchApi.ts120 [{ extension: ".vue", isMixedContent: true, scriptKind: ScriptKind.Deferred }]
/third_party/typescript/src/compiler/
Dparser.ts616 …ceText: string, languageVersion: ScriptTarget, setParentNodes = false, scriptKind?: ScriptKind, op…
626 …ile(fileName, sourceText, languageVersion, /*syntaxCursor*/ undefined, setParentNodes, scriptKind);
730 let scriptKind: ScriptKind;
842 …r: IncrementalParser.SyntaxCursor | undefined, setParentNodes = false, scriptKind?: ScriptKind): S…
843 scriptKind = ensureScriptKind(fileName, scriptKind);
844 if (scriptKind === ScriptKind.JSON) {
856 initializeState(fileName, sourceText, languageVersion, syntaxCursor, scriptKind);
858 const result = parseSourceFileWorker(languageVersion, setParentNodes, scriptKind);
956 scriptKind = _scriptKind;
968 switch (scriptKind) {
[all …]
Dutilities.ts988 switch (node.scriptKind) {
1351 return file.scriptKind === ScriptKind.JSON;
6249 export function getLanguageVariant(scriptKind: ScriptKind) {
6251 …return scriptKind === ScriptKind.TSX || scriptKind === ScriptKind.JSX || scriptKind === ScriptKind…
6788 …export function ensureScriptKind(fileName: string, scriptKind: ScriptKind | undefined): ScriptKind…
6795 return scriptKind || getScriptKindFromFileName(fileName) || ScriptKind.TS;
6841 …pDefined(extraFileExtensions, x => x.scriptKind === ScriptKind.Deferred || needJsExtensions && isJ…
6854 function isJSLike(scriptKind: ScriptKind | undefined): boolean {
6855 return scriptKind === ScriptKind.JS || scriptKind === ScriptKind.JSX;
Dprogram.ts1915 …AndCheckDiagnostics = !isTsNoCheck && (sourceFile.scriptKind === ScriptKind.TS || sourceFile.scrip…
1916 …sourceFile.scriptKind === ScriptKind.External || isCheckJs || sourceFile.scriptKind === ScriptKind…
3182 …isExternalModule(f) && !isSourceFileJS(f) && !f.isDeclarationFile && f.scriptKind !== ScriptKind.J…
DmoduleSpecifiers.ts575 …, isMixedContent: false }, { extension: "json", isMixedContent: false, scriptKind: ScriptKind.JSON…
/third_party/typescript_eslint/packages/typescript-estree/src/create-program/
DcreateWatchProgram.ts347 scriptKind: ts.ScriptKind.Deferred,
/third_party/typescript/lib/
Dprotocol.d.ts1002 scriptKind?: ScriptKindName | ts.ScriptKind; property
2837 scriptKind?: ScriptKind; property
Dtsserverlibrary.d.ts2724 scriptKind?: ScriptKind; property
4587 …Text: string, languageVersion: ScriptTarget, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
6418 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6419 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6432 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6433 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6480 … scriptTarget: ScriptTarget, version: string, setNodeParents: boolean, scriptKind?: ScriptKind, op…
7579 scriptKind?: ScriptKindName | ts.ScriptKind;
9296 readonly scriptKind: ScriptKind;
9306 …constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: b…
[all …]
DtypescriptServices.d.ts2724 scriptKind?: ScriptKind; property
4587 …Text: string, languageVersion: ScriptTarget, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
6418 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6419 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6432 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6433 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6480 … scriptTarget: ScriptTarget, version: string, setNodeParents: boolean, scriptKind?: ScriptKind, op…
/third_party/typescript/src/compiler/transformers/
Ddeclarations.ts1081 …tCompilerOptions().ets?.styles.component || getSourceFileOfNode(input).scriptKind !== ScriptKind.E…
1475 … getSourceFileOfNode(input).scriptKind === ScriptKind.ETS ? ensureEtsDecorators(input) : undefined,
1487 … getSourceFileOfNode(input).scriptKind === ScriptKind.ETS ? ensureEtsDecorators(input) : undefined,
/third_party/typescript/tests/baselines/reference/api/
Dtsserverlibrary.d.ts2738 scriptKind?: ScriptKind; property
4668 …Text: string, languageVersion: ScriptTarget, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
6507 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6508 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6521 …gs: CompilerOptions, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6522 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): S…
6569 … scriptTarget: ScriptTarget, version: string, setNodeParents: boolean, scriptKind?: ScriptKind, op…
7670 scriptKind?: ScriptKindName | ts.ScriptKind;
9417 readonly scriptKind: ScriptKind;
9427 …constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: b…
[all …]

12