Home
last modified time | relevance | path

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

12

/third_party/typescript/src/services/
DdocumentRegistry.ts40 scriptKind?: ScriptKind,
51 scriptKind?: ScriptKind,
75 scriptKind?: ScriptKind,
86 scriptKind?: ScriptKind,
102 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): …
114 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, im…
117 … releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
118 …releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, implied…
121 … getLanguageServiceRefCounts(path: Path, scriptKind: ScriptKind): [string, number | undefined][];
164 … const sourceFiles: { name: string; scriptKind: ScriptKind, refCount: number; }[] = []; constant
[all …]
Dtranspile.ts76 const scriptKind = ensureScriptKind(inputFileName, /*setScriptKind*/ undefined); constant
86 scriptKind,
Dservices.ts716 public scriptKind!: ScriptKind;
1026 const scriptKind = getScriptKind(fileName, this.host); constant
1042 …e(fileName, scriptSnapshot, options, version, /*setNodeParents*/ true, scriptKind, this.host.getCo…
1067 …t | CreateSourceFileOptions, version: string, setNodeParents: boolean, scriptKind?: ScriptKind, op…
1068 …eName, getSnapshotText(scriptSnapshot), scriptTargetOrOptions, setNodeParents, scriptKind, option);
1130 …ileName, scriptSnapshot, options, version, /*setNodeParents*/ true, sourceFile.scriptKind, option);
1476 …umentWithKey(oldSourceFile.resolvedPath, oldSettingsKey, oldSourceFile.scriptKind, oldSourceFile.i…
1493 const scriptKind = getScriptKind(fileName, host); constant
1528 if (scriptKind === oldSourceFile.scriptKind) {
1529 … path, host, documentRegistryBucketKey, scriptSnapshot, scriptVersion, scriptKind, languageVersion…
[all …]
DinlayHints.ts196 … if (!isIdentifierText(name, compilerOptions.target, getLanguageVariant(file.scriptKind))) {
DtextChanges.ts1029 …export function getNewFileText(statements: readonly Statement[], scriptKind: ScriptKind, newLineCh…
1030 …return changesToText.newFileChangesWorker(/*oldFile*/ undefined, scriptKind, statements, newLineCh…
1067 …export function newFileChangesWorker(oldFile: SourceFile | undefined, scriptKind: ScriptKind, stat…
1070 …eFile("any file name", nonFormattedText, ScriptTarget.ESNext, /*setParentNodes*/ true, scriptKind);
/third_party/typescript/src/server/
DscriptInfo.ts334 readonly scriptKind: ScriptKind,
345 this.scriptKind = scriptKind
346 ? scriptKind
657 return this.scriptKind === ScriptKind.JS || this.scriptKind === ScriptKind.JSX;
DeditorServices.ts343 result = info.scriptKind;
357 getScriptKind: x => tryConvertScriptKindName(x.scriptKind!), // TODO: GH#18217
638 scriptKind?: protocol.ScriptKindName | ScriptKind; property
2342 … const scriptKind = propertyReader.getScriptKind(f, this.hostConfiguration.extraFileExtensions); constant
2347 scriptKind,
2770 …tForNormalizedPath(fileName: NormalizedPath, currentDirectory: string, scriptKind: ScriptKind | un…
2772 …currentDirectory, /*openedByClient*/ false, /*fileContent*/ undefined, scriptKind, hasMixedContent…
2787 …alizedPath, currentDirectory: string, fileContent: string | undefined, scriptKind: ScriptKind | un…
2788 …rker(fileName, currentDirectory, /*openedByClient*/ true, fileContent, scriptKind, hasMixedContent…
2791 …leName: NormalizedPath, openedByClient: boolean, fileContent?: string, scriptKind?: ScriptKind, ha…
[all …]
Dproject.ts28 switch (info.scriptKind) {
522 return (info && info.scriptKind)!; // TODO: GH#18217
/third_party/typescript/src/testRunner/unittests/tsserver/
DtypeAquisition.ts16 …ternalFile(file2.path), { fileName: file1.path, hasMixedContent: true, scriptKind: ScriptKind.JS }…
DdocumentRegistry.ts30 …cumentRegistry.getLanguageServiceRefCounts(moduleInfo.path, moduleInfo.scriptKind), [[key, moduleI…
Dprojects.ts570 scriptKind: "JS" as const
683 …const extraFileExtensions = [{ extension: ".html", scriptKind: ScriptKind.JS, isMixedContent: true…
696 scriptKind: ScriptKind.JS,
743 …const extraFileExtensions = [{ extension: ".html", scriptKind: ScriptKind.JS, isMixedContent: true…
866 …ct({ projectFileName, options: {}, rootFiles: [{ fileName: file1.path, scriptKind: ScriptKind.JS, …
1187 …const extraFileExtensions = [{ extension: ".deferred", scriptKind: ScriptKind.Deferred, isMixedCon…
/third_party/typescript/src/linter/ArkTSLinter_1_0/
DLinterRunner.ts65 if(TypeScriptLinter.lintEtsOnly && fileToLint.scriptKind !==ScriptKind.ETS) {
/third_party/typescript/src/linter/ArkTSLinter_1_1/
DLinterRunner.ts65 if(TypeScriptLinter.lintEtsOnly && fileToLint.scriptKind !==ScriptKind.ETS) {
/third_party/typescript/src/compiler/
DohApi.ts4 return node !== undefined && getSourceFileOfNode(node)?.scriptKind === ScriptKind.ETS;
10 if (node !== undefined && getSourceFileOfNode(node)?.scriptKind === ScriptKind.ETS) {
94 …tCompilerOptions().ets?.styles.component || getSourceFileOfNode(input).scriptKind !== ScriptKind.E…
Dutilities.ts279 …return !!file && (file.scriptKind === ScriptKind.JS || file.scriptKind === ScriptKind.JSX) && !fil…
858 switch (node.scriptKind) {
1255 return file.scriptKind === ScriptKind.JSON;
2229 return !!node && getSourceFileOfNode(node).scriptKind === ScriptKind.ETS;
6305 export function getLanguageVariant(scriptKind: ScriptKind) {
6307 …return scriptKind === ScriptKind.TSX || scriptKind === ScriptKind.JSX || scriptKind === ScriptKind…
6965 …export function ensureScriptKind(fileName: string, scriptKind: ScriptKind | undefined): ScriptKind…
6972 return scriptKind || getScriptKindFromFileName(fileName) || ScriptKind.TS;
7026 …pDefined(extraFileExtensions, x => x.scriptKind === ScriptKind.Deferred || needJsExtensions && isJ…
7041 function isJSLike(scriptKind: ScriptKind | undefined): boolean {
[all …]
Dparser.ts944 …tions: ScriptTarget | CreateSourceFileOptions, setParentNodes = false, scriptKind?: ScriptKind, op…
963 …sourceText, languageVersion, /*syntaxCursor*/ undefined, setParentNodes, scriptKind, setIndicator);
1065 let scriptKind: ScriptKind;
1177 …r: IncrementalParser.SyntaxCursor | undefined, setParentNodes = false, scriptKind?: ScriptKind, se…
1178 scriptKind = ensureScriptKind(fileName, scriptKind);
1179 if (scriptKind === ScriptKind.JSON) {
1191 initializeState(fileName, sourceText, languageVersion, syntaxCursor, scriptKind);
1193 …const result = parseSourceFileWorker(languageVersion, setParentNodes, scriptKind, setExternalModul…
1311 scriptKind = _scriptKind;
1323 switch (scriptKind) {
[all …]
Dprogram.ts2221 … const isJs = sourceFile.scriptKind === ScriptKind.JS || sourceFile.scriptKind === ScriptKind.JSX;
2230 …AndCheckDiagnostics = !isTsNoCheck && (sourceFile.scriptKind === ScriptKind.TS || sourceFile.scrip…
2231 …urceFile.scriptKind === ScriptKind.External || isPlainJs || isCheckJs || sourceFile.scriptKind ===…
2273 if (item.file?.scriptKind === ScriptKind.TS && item.file?.isDeclarationFile) {
3616 …dule(file) && !isSourceFileJS(file) && !file.isDeclarationFile && file.scriptKind !== ScriptKind.J…
/third_party/typescript/src/testRunner/unittests/
DprogramApi.ts175 assert.equal(json.scriptKind, ScriptKind.JSON);
/third_party/typescript/lib/
Dprotocol.d.ts1035 scriptKind?: ScriptKindName | ts.ScriptKind; property
3046 scriptKind?: ScriptKind; property
Dtsserverlibrary.d.ts2956 scriptKind?: ScriptKind; property
5216 …ons: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
7321 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7322 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7338 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7339 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7352 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): …
7364 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, im…
7367 … releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
7368 …releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, implied…
[all …]
Dtypescript.d.ts2956 scriptKind?: ScriptKind; property
5216 …ons: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
7321 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7322 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7338 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7339 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7352 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): …
7364 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, im…
7367 … releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
7368 …releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, implied…
[all …]
DtypescriptServices.d.ts2956 scriptKind?: ScriptKind; property
5216 …ons: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
7321 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7322 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7338 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7339 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7352 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): …
7364 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, im…
7367 … releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
7368 …releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, implied…
[all …]
/third_party/typescript/src/testRunner/unittests/tscWatch/
DwatchApi.ts216 …extraFileExtensions: [{ extension: ".vue", isMixedContent: true, scriptKind: ScriptKind.Deferred }…
/third_party/typescript/tests/baselines/reference/api/
Dtsserverlibrary.d.ts2956 scriptKind?: ScriptKind; property
5216 …ons: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
7321 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7322 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7338 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7339 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7352 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): …
7364 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, im…
7367 … releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
7368 …releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, implied…
[all …]
Dtypescript.d.ts2956 scriptKind?: ScriptKind; property
5216 …ons: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, op…
7321 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7322 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7338 …ResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7339 …ntRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, so…
7352 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): …
7364 …releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, im…
7367 … releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
7368 …releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, implied…
[all …]

12