Home
last modified time | relevance | path

Searched refs:TypeScript (Results 1 – 25 of 632) sorted by relevance

12345678910>>...26

/third_party/typescript/tests/baselines/reference/
DparserRealSource14.types7 module TypeScript {
8 >TypeScript : typeof TypeScript
71 public asts: TypeScript.AST[] = [];
72 >asts : TypeScript.AST[]
73 >TypeScript : any
119 >clone.asts = this.asts.map((value) => { return value; }) : TypeScript.AST[]
120 >clone.asts : TypeScript.AST[]
122 >asts : TypeScript.AST[]
123 >this.asts.map((value) => { return value; }) : TypeScript.AST[]
124 >this.asts.map : <U>(callbackfn: (value: TypeScript.AST, index: number, array: TypeScript.AST[]) =>…
[all …]
DparserRealSource14.js7 module TypeScript {
25 public asts: TypeScript.AST[] = [];
39 public pop(): TypeScript.AST {
49 public push(ast: TypeScript.AST) {
69 public nodeType(): TypeScript.NodeType {
71 return TypeScript.NodeType.None;
76 … return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - (this.top + 1));
80 return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - this.top);
87 public get(index: number): TypeScript.AST {
95 return (this.ast().nodeType === TypeScript.NodeType.Name) &&
[all …]
DparserRealSource14.errors.txt2 …ser/ecmascript5/parserRealSource14.ts(24,33): error TS2694: Namespace 'TypeScript' has no exported…
3 …ser/ecmascript5/parserRealSource14.ts(38,34): error TS2694: Namespace 'TypeScript' has no exported…
4 …ser/ecmascript5/parserRealSource14.ts(48,37): error TS2694: Namespace 'TypeScript' has no exported…
5 …ser/ecmascript5/parserRealSource14.ts(68,39): error TS2694: Namespace 'TypeScript' has no exported…
6 …alSource14.ts(70,35): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
7 …ser/ecmascript5/parserRealSource14.ts(75,32): error TS2694: Namespace 'TypeScript' has no exported…
8 …ser/ecmascript5/parserRealSource14.ts(79,32): error TS2694: Namespace 'TypeScript' has no exported…
9 …ser/ecmascript5/parserRealSource14.ts(86,47): error TS2694: Namespace 'TypeScript' has no exported…
10 …alSource14.ts(94,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
11 …alSource14.ts(95,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
[all …]
DmoduleMemberWithoutTypeAnnotation1.js2 module TypeScript.Parser {
10 module TypeScript {
26 module TypeScript {
38 module TypeScript.Syntax {
50 var TypeScript; variable
51 (function (TypeScript) { argument
62 })(Parser = TypeScript.Parser || (TypeScript.Parser = {}));
63 })(TypeScript || (TypeScript = {}));
64 (function (TypeScript) { argument
71 return TypeScript.Syntax.childIndex();
[all …]
DtypeInferenceWithExcessProperties.types19 >parrot({ name: "TypeScript",}) : { name: string; }
21 >{ name: "TypeScript",} : { name: string; }
23 name: "TypeScript",
25 >"TypeScript" : "TypeScript"
30 >parrot({ name: "TypeScript", age: 5,}) : { name: string; age: number; }
32 >{ name: "TypeScript", age: 5,} : { name: string; age: number; }
34 name: "TypeScript",
36 >"TypeScript" : "TypeScript"
45 >parrot({ name: "TypeScript", age: function () { },}) : { name: string; age: () => void; }
47 >{ name: "TypeScript", age: function () { },} : { name: string; age: () => void; }
[all …]
DmoduleExports1.types2 export module TypeScript.Strasse.Street {
3 >TypeScript : typeof TypeScript
15 var rue = new TypeScript.Strasse.Street.Rue();
16 >rue : TypeScript.Strasse.Street.Rue
17 >new TypeScript.Strasse.Street.Rue() : TypeScript.Strasse.Street.Rue
18 >TypeScript.Strasse.Street.Rue : typeof TypeScript.Strasse.Street.Rue
19 >TypeScript.Strasse.Street : typeof TypeScript.Strasse.Street
20 >TypeScript.Strasse : typeof TypeScript.Strasse
21 >TypeScript : typeof TypeScript
22 >Strasse : typeof TypeScript.Strasse
[all …]
DparserRealSource14.symbols7 module TypeScript {
8 >TypeScript : Symbol(TypeScript, Decl(parserRealSource14.ts, 0, 0))
56 public asts: TypeScript.AST[] = [];
58 >TypeScript : Symbol(TypeScript, Decl(parserRealSource14.ts, 0, 0))
59 >AST : Symbol(TypeScript.AST)
114 public pop(): TypeScript.AST {
116 >TypeScript : Symbol(TypeScript, Decl(parserRealSource14.ts, 0, 0))
117 >AST : Symbol(TypeScript.AST)
151 public push(ast: TypeScript.AST) {
154 >TypeScript : Symbol(TypeScript, Decl(parserRealSource14.ts, 0, 0))
[all …]
DjsDeclarationsInterfaces.errors.txt1 …ations/index.js(4,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
2 …ations/index.js(6,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
3 …tions/index.js(10,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
4 …tions/index.js(31,11): error TS8006: 'interface' declarations can only be used in TypeScript files.
6 …tions/index.js(35,11): error TS8006: 'interface' declarations can only be used in TypeScript files.
8 …tions/index.js(39,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
11 …tions/index.js(43,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
12 …tions/index.js(45,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
13 …tions/index.js(49,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
14 …tions/index.js(53,18): error TS8006: 'interface' declarations can only be used in TypeScript files.
[all …]
DjsDeclarationsClassesErr.errors.txt1 …ons/index.js(4,16): error TS8004: Type parameter declarations can only be used in TypeScript files.
2 …c/declarations/index.js(5,12): error TS8010: Type annotations can only be used in TypeScript files.
3 …ons/index.js(8,16): error TS8004: Type parameter declarations can only be used in TypeScript files.
4 …doc/declarations/index.js(8,29): error TS8011: Type arguments can only be used in TypeScript files.
5 …c/declarations/index.js(9,12): error TS8010: Type annotations can only be used in TypeScript files.
6 …/declarations/index.js(13,11): error TS8010: Type annotations can only be used in TypeScript files.
7 …/declarations/index.js(19,11): error TS8010: Type annotations can only be used in TypeScript files.
8 …/declarations/index.js(23,11): error TS8010: Type annotations can only be used in TypeScript files.
9 …/declarations/index.js(27,11): error TS8010: Type annotations can only be used in TypeScript files.
10 …/declarations/index.js(28,11): error TS8010: Type annotations can only be used in TypeScript files.
[all …]
DparserRealSource2.js7 module TypeScript {
278 var TypeScript; variable
279 (function (TypeScript) { argument
283 TypeScript.hasFlag = hasFlag;
324 })(ErrorRecoverySet = TypeScript.ErrorRecoverySet || (TypeScript.ErrorRecoverySet = {}));
335 })(AllowedElements = TypeScript.AllowedElements || (TypeScript.AllowedElements = {}));
347 })(Modifiers = TypeScript.Modifiers || (TypeScript.Modifiers = {}));
366 })(ASTFlags = TypeScript.ASTFlags || (TypeScript.ASTFlags = {}));
378 })(DeclFlags = TypeScript.DeclFlags || (TypeScript.DeclFlags = {}));
395 })(ModuleFlags = TypeScript.ModuleFlags || (TypeScript.ModuleFlags = {}));
[all …]
DmoduleExports1.symbols2 export module TypeScript.Strasse.Street {
3 >TypeScript : Symbol(TypeScript, Decl(moduleExports1.ts, 0, 0))
15 var rue = new TypeScript.Strasse.Street.Rue();
17 >TypeScript.Strasse.Street.Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 0, 4…
18 >TypeScript.Strasse.Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 0, 33))
19 >TypeScript.Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 0, 25))
20 >TypeScript : Symbol(TypeScript, Decl(moduleExports1.ts, 0, 0))
21 >Strasse : Symbol(TypeScript.Strasse, Decl(moduleExports1.ts, 0, 25))
22 >Street : Symbol(TypeScript.Strasse.Street, Decl(moduleExports1.ts, 0, 33))
23 >Rue : Symbol(TypeScript.Strasse.Street.Rue, Decl(moduleExports1.ts, 0, 41))
[all …]
DjsDeclarationsEnums.errors.txt1 …eclarations/index.js(4,13): error TS8006: 'enum' declarations can only be used in TypeScript files.
2 …eclarations/index.js(6,13): error TS8006: 'enum' declarations can only be used in TypeScript files.
3 …eclarations/index.js(10,6): error TS8006: 'enum' declarations can only be used in TypeScript files.
4 …eclarations/index.js(14,6): error TS8006: 'enum' declarations can only be used in TypeScript files.
5 …clarations/index.js(18,13): error TS8006: 'enum' declarations can only be used in TypeScript files.
6 …clarations/index.js(22,13): error TS8006: 'enum' declarations can only be used in TypeScript files.
7 …clarations/index.js(24,13): error TS8006: 'enum' declarations can only be used in TypeScript files.
8 …clarations/index.js(30,13): error TS8006: 'enum' declarations can only be used in TypeScript files.
9 …clarations/index.js(35,13): error TS8006: 'enum' declarations can only be used in TypeScript files.
10 …clarations/index.js(41,19): error TS8006: 'enum' declarations can only be used in TypeScript files.
[all …]
DmoduleExports1.js2 export module TypeScript.Strasse.Street {
8 var rue = new TypeScript.Strasse.Street.Rue();
20 exports.TypeScript = void 0;
21 var TypeScript;
22 (function (TypeScript) { argument
34 })(Strasse = TypeScript.Strasse || (TypeScript.Strasse = {}));
35 })(TypeScript = exports.TypeScript || (exports.TypeScript = {}));
36 var rue = new TypeScript.Strasse.Street.Rue();
Dparserharness.errors.txt16 …r/ecmascript5/RealWorld/parserharness.ts(716,47): error TS2503: Cannot find namespace 'TypeScript'.
19 …t5/RealWorld/parserharness.ts(754,53): error TS2552: Cannot find name 'TypeScript'. Did you mean '…
20 …r/ecmascript5/RealWorld/parserharness.ts(764,56): error TS2503: Cannot find namespace 'TypeScript'.
21 …parser/ecmascript5/RealWorld/parserharness.ts(765,37): error TS2304: Cannot find name 'TypeScript'.
22 …parser/ecmascript5/RealWorld/parserharness.ts(767,47): error TS2304: Cannot find name 'TypeScript'.
23 …parser/ecmascript5/RealWorld/parserharness.ts(776,13): error TS2304: Cannot find name 'TypeScript'.
24 …parser/ecmascript5/RealWorld/parserharness.ts(776,42): error TS2304: Cannot find name 'TypeScript'.
25 …r/ecmascript5/RealWorld/parserharness.ts(781,23): error TS2503: Cannot find namespace 'TypeScript'.
26 …parser/ecmascript5/RealWorld/parserharness.ts(794,49): error TS2304: Cannot find name 'TypeScript'.
27 …parser/ecmascript5/RealWorld/parserharness.ts(795,49): error TS2304: Cannot find name 'TypeScript'.
[all …]
DgenericRecursiveImplicitConstructorErrors3.js2 module TypeScript {
9 module TypeScript {
49 var TypeScript; variable
50 (function (TypeScript) { argument
58 TypeScript.MemberName = MemberName;
59 })(TypeScript || (TypeScript = {}));
60 (function (TypeScript) { argument
67 TypeScript.PullSymbol = PullSymbol;
85 return TypeScript.MemberName.create(elementMemberName, "", "[]");
90 TypeScript.PullTypeSymbol = PullTypeSymbol;
[all …]
DparserVariableDeclaration3.types23 , compiler = <TypeScript.TypeScriptCompiler>new TypeScript.TypeScriptCompiler(outerr)
24 >compiler : TypeScript.TypeScriptCompiler
25 ><TypeScript.TypeScriptCompiler>new TypeScript.TypeScriptCompiler(outerr) : TypeScript.TypeScriptCo…
26 >TypeScript : any
27 >new TypeScript.TypeScriptCompiler(outerr) : any
28 >TypeScript.TypeScriptCompiler : any
29 >TypeScript : any
DmoduleMemberWithoutTypeAnnotation1.types2 module TypeScript.Parser {
3 >TypeScript : typeof TypeScript
18 module TypeScript {
19 >TypeScript : typeof TypeScript
50 module TypeScript {
51 >TypeScript : typeof TypeScript
87 module TypeScript.Syntax {
88 >TypeScript : typeof TypeScript
DnodeModulesAllowJsImportAssignment(module=nodenext).errors.txt1 …mance/node/allowJs/file.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
2 …mance/node/allowJs/file.js(6,1): error TS8002: 'import ... =' can only be used in TypeScript files.
3 …ance/node/allowJs/index.js(2,1): error TS8002: 'import ... =' can only be used in TypeScript files.
4 …ance/node/allowJs/index.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
5 …allowJs/subfolder/index.js(2,1): error TS8002: 'import ... =' can only be used in TypeScript files.
6 …allowJs/subfolder/index.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
13 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
17 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
22 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
26 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
[all …]
DnodeModulesAllowJsImportAssignment(module=node16).errors.txt1 …mance/node/allowJs/file.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
2 …mance/node/allowJs/file.js(6,1): error TS8002: 'import ... =' can only be used in TypeScript files.
3 …ance/node/allowJs/index.js(2,1): error TS8002: 'import ... =' can only be used in TypeScript files.
4 …ance/node/allowJs/index.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
5 …allowJs/subfolder/index.js(2,1): error TS8002: 'import ... =' can only be used in TypeScript files.
6 …allowJs/subfolder/index.js(4,1): error TS8002: 'import ... =' can only be used in TypeScript files.
13 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
17 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
22 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
26 !!! error TS8002: 'import ... =' can only be used in TypeScript files.
[all …]
Dparserharness.types2541 /** Functionality for compiling TypeScript code */
2546 * TypeScript compiler to fill with source code or errors.
2645 export class EmitterIOHost implements TypeScript.EmitterIOHost {
2647 >TypeScript : any
2811 …var libFolder: string = global['WScript'] ? TypeScript.filePath(global['WScript'].ScriptFullName) …
2813 >global['WScript'] ? TypeScript.filePath(global['WScript'].ScriptFullName) : (__dirname + '/') : any
2817 >TypeScript.filePath(global['WScript'].ScriptFullName) : any
2818 >TypeScript.filePath : any
2819 >TypeScript : any
2866 export function makeDefaultCompilerForTest(c?: TypeScript.TypeScriptCompiler) {
[all …]
DmoduleMemberWithoutTypeAnnotation2.js2 module TypeScript {
21 var TypeScript; variable
22 (function (TypeScript) { argument
32 … })(CompilerDiagnostics = TypeScript.CompilerDiagnostics || (TypeScript.CompilerDiagnostics = {}));
33 })(TypeScript || (TypeScript = {}));
Dparserharness.js717 export class EmitterIOHost implements TypeScript.EmitterIOHost {
755 …var libFolder: string = global['WScript'] ? TypeScript.filePath(global['WScript'].ScriptFullName) …
765 export function makeDefaultCompilerForTest(c?: TypeScript.TypeScriptCompiler) {
766 var compiler = c || new TypeScript.TypeScriptCompiler(stderr);
768 compiler.settings.codeGenTarget = TypeScript.CodeGenTarget.ES5;
777 TypeScript.moduleGenTarget = TypeScript.ModuleGenTarget.Synchronous;
782 var compiler: TypeScript.TypeScriptCompiler;
795 compiler.pullUpdateUnit(new TypeScript.StringSourceText(""), filename, true);
796 compiler.pullUpdateUnit(new TypeScript.StringSourceText(code), filename, true);
988 … enclosingScopeContext = TypeScript.findEnclosingScopeAt(new TypeScript.NullLogger(), <TypeScript.…
[all …]
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource14.ts6 module TypeScript {
24 public asts: TypeScript.AST[] = [];
38 public pop(): TypeScript.AST {
48 public push(ast: TypeScript.AST) {
68 public nodeType(): TypeScript.NodeType {
70 return TypeScript.NodeType.None;
75 … return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - (this.top + 1));
79 return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - this.top);
86 public get(index: number): TypeScript.AST {
94 return (this.ast().nodeType === TypeScript.NodeType.Name) &&
[all …]
/third_party/typescript/
DREADME.md2 # TypeScript chapter
4 …tions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/micr…
5 …ps://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.…
9TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeS…
11 Find others who are using TypeScript at [our community page](https://www.typescriptlang.org/communi…
29 … ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeSc…
30 * [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they ar…
31 * Review the [source code changes](https://github.com/microsoft/TypeScript/pulls).
32 * Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/qu…
33 * Help each other in the [TypeScript Community Discord](https://discord.gg/typescript).
[all …]
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/RealWorld/
Dparserharness.ts717 export class EmitterIOHost implements TypeScript.EmitterIOHost {
755 …var libFolder: string = global['WScript'] ? TypeScript.filePath(global['WScript'].ScriptFullName) …
765 export function makeDefaultCompilerForTest(c?: TypeScript.TypeScriptCompiler) {
766 var compiler = c || new TypeScript.TypeScriptCompiler(stderr);
768 compiler.settings.codeGenTarget = TypeScript.CodeGenTarget.ES5;
777 TypeScript.moduleGenTarget = TypeScript.ModuleGenTarget.Synchronous;
782 var compiler: TypeScript.TypeScriptCompiler;
795 compiler.pullUpdateUnit(new TypeScript.StringSourceText(""), filename, true);
796 compiler.pullUpdateUnit(new TypeScript.StringSourceText(code), filename, true);
988 … enclosingScopeContext = TypeScript.findEnclosingScopeAt(new TypeScript.NullLogger(), <TypeScript.…
[all …]

12345678910>>...26