Home
last modified time | relevance | path

Searched refs:Greeter (Results 1 – 25 of 162) sorted by relevance

1234567

/third_party/typescript/tests/baselines/reference/
DsourceMapValidationClasses.types9 class Greeter {
10 >Greeter : Greeter
31 function foo(greeting: string): Greeter {
32 >foo : (greeting: string) => Greeter
35 return new Greeter(greeting);
36 >new Greeter(greeting) : Greeter
37 >Greeter : typeof Greeter
41 var greeter = new Greeter("Hello, world!");
42 >greeter : Greeter
43 >new Greeter("Hello, world!") : Greeter
[all …]
DsourceMapSample.types9 class Greeter {
10 >Greeter : Greeter
31 function foo(greeting: string): Foo.Bar.Greeter {
37 return new Greeter(greeting);
38 >new Greeter(greeting) : Greeter
39 >Greeter : typeof Greeter
43 var greeter = new Greeter("Hello, world!");
44 >greeter : Greeter
45 >new Greeter("Hello, world!") : Greeter
46 >Greeter : typeof Greeter
[all …]
DsourceMapValidationClass.symbols2 class Greeter {
3 >Greeter : Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0))
6 >greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16))
10 >greet : Symbol(Greeter.greet, Decl(sourceMapValidationClass.ts, 2, 5))
13 >this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16))
14 >this : Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0))
15 >greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClass.ts, 1, 16))
18 >x : Symbol(Greeter.x, Decl(sourceMapValidationClass.ts, 5, 5))
21 >x1 : Symbol(Greeter.x1, Decl(sourceMapValidationClass.ts, 6, 22))
24 >fn : Symbol(Greeter.fn, Decl(sourceMapValidationClass.ts, 7, 28))
[all …]
DbpSpan_typeAssertionExpressions.baseline2 1 >class Greeter {
5 >class Greeter {
15 3 >var a = <Greeter>new Greeter();
18 >var a = <Greeter>new Greeter()
21 4 >a = (<Greeter> new Greeter());
24 >a = (<Greeter> new Greeter())
27 5 >a = <Greeter>(function foo() {
30 >a = <Greeter>(function foo() {
31 > return new Greeter();
34 5 >a = <Greeter>(function foo() {
[all …]
DsourceMapValidationClasses.symbols8 class Greeter {
9 >Greeter : Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17))
12 >greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClasses.ts, 4, 20))
16 >greet : Symbol(Greeter.greet, Decl(sourceMapValidationClasses.ts, 5, 9))
19 >this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClasses.ts, 4, 20))
20 >this : Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17))
21 >greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationClasses.ts, 4, 20))
26 function foo(greeting: string): Greeter {
29 >Greeter : Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17))
31 return new Greeter(greeting);
[all …]
DsourceMapSample.symbols8 class Greeter {
9 >Greeter : Symbol(Greeter, Decl(sourceMapSample.ts, 1, 17))
12 >greeting : Symbol(Greeter.greeting, Decl(sourceMapSample.ts, 4, 20))
16 >greet : Symbol(Greeter.greet, Decl(sourceMapSample.ts, 5, 9))
19 >this.greeting : Symbol(Greeter.greeting, Decl(sourceMapSample.ts, 4, 20))
20 >this : Symbol(Greeter, Decl(sourceMapSample.ts, 1, 17))
21 >greeting : Symbol(Greeter.greeting, Decl(sourceMapSample.ts, 4, 20))
26 function foo(greeting: string): Foo.Bar.Greeter {
32 return new Greeter(greeting);
33 >Greeter : Symbol(Greeter, Decl(sourceMapSample.ts, 1, 17))
[all …]
DsourceMapValidationClasses.js5 class Greeter { class
15 function foo(greeting: string): Greeter {
16 return new Greeter(greeting);
19 var greeter = new Greeter("Hello, world!");
23 var greeters: Greeter[] = []; /* inline block comment */
24 greeters[0] = new Greeter(greeting);
26 greeters.push(new Greeter(restGreetings[i]));
45 var Greeter = /** @class */ (function () { class
46 function Greeter(greeting) { class in anonymousFunction0e994f820100.anonymousFunction0e994f820200.Greeter
49 Greeter.prototype.greet = function () {
[all …]
DsourceMapSample.js5 class Greeter { class
15 function foo(greeting: string): Foo.Bar.Greeter {
16 return new Greeter(greeting);
19 var greeter = new Greeter("Hello, world!");
23 var greeters: Greeter[] = [];
24 greeters[0] = new Greeter(greeting);
26 greeters.push(new Greeter(restGreetings[i]));
44 var Greeter = /** @class */ (function () { class
45 function Greeter(greeting) { class in anonymousFunctiond301d5eb0100.anonymousFunctiond301d5eb0200.Greeter
48 Greeter.prototype.greet = function () {
[all …]
DimportAsBaseClass.js4 export class Greeter { class
9 import Greeter = require("./importAsBaseClass_0");
10 class Hello extends Greeter { }
16 exports.Greeter = void 0;
17 var Greeter = /** @class */ (function () {
18 function Greeter() { class in Greeter
20 Greeter.prototype.greet = function () { return 'greet'; };
21 return Greeter;
23 exports.Greeter = Greeter;
42 var Greeter = require("./importAsBaseClass_0");
[all …]
DexportAssignmentWithoutIdentifier1.types2 function Greeter() {
3 >Greeter : () => void
7 Greeter.prototype.greet = function () {
8 >Greeter.prototype.greet = function () { //...} : () => void
9 >Greeter.prototype.greet : any
10 >Greeter.prototype : any
11 >Greeter : () => void
18 export = new Greeter();
19 >new Greeter() : any
20 >Greeter : () => void
DexportAssignmentWithoutIdentifier1.symbols2 function Greeter() {
3 >Greeter : Symbol(Greeter, Decl(exportAssignmentWithoutIdentifier1.ts, 0, 0))
7 Greeter.prototype.greet = function () {
8 >Greeter.prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --))
9 >Greeter : Symbol(Greeter, Decl(exportAssignmentWithoutIdentifier1.ts, 0, 0))
14 export = new Greeter();
15 >Greeter : Symbol(Greeter, Decl(exportAssignmentWithoutIdentifier1.ts, 0, 0))
DimportAsBaseClass.symbols2 import Greeter = require("./importAsBaseClass_0");
3 >Greeter : Symbol(Greeter, Decl(importAsBaseClass_1.ts, 0, 0))
5 class Hello extends Greeter { }
7 >Greeter : Symbol(Greeter, Decl(importAsBaseClass_1.ts, 0, 0))
10 export class Greeter {
11 >Greeter : Symbol(Greeter, Decl(importAsBaseClass_0.ts, 0, 0))
14 >greet : Symbol(Greeter.greet, Decl(importAsBaseClass_0.ts, 0, 22))
DimportAsBaseClass.types2 import Greeter = require("./importAsBaseClass_0");
3 >Greeter : typeof Greeter
5 class Hello extends Greeter { }
7 >Greeter : typeof Greeter
10 export class Greeter {
11 >Greeter : Greeter
DsourceMapValidationDecorators.js11 class Greeter { class
67 var Greeter = /** @class */ (function () {
68 function Greeter(greeting) { class in Greeter
75 Greeter.prototype.greet = function () {
78 Greeter.prototype.fn = function (x) {
81 Object.defineProperty(Greeter.prototype, "greetings", {
91 Greeter.x1 = 10;
95 ], Greeter.prototype, "greet", null);
99 ], Greeter.prototype, "x", void 0);
103 ], Greeter.prototype, "fn", null);
[all …]
DsourceMapSample.sourcemap.txt23 > class Greeter {
33 > function foo(greeting: string): Foo.Bar.Greeter {
34 > return new Greeter(greeting);
37 > var greeter = new Greeter("Hello, world!");
41 > var greeters: Greeter[] = [];
42 > greeters[0] = new Greeter(greeting);
44 > greeters.push(new Greeter(restGreetings[i]));
83 > class Greeter {
93 > function foo(greeting: string): Foo.Bar.Greeter {
94 > return new Greeter(greeting);
[all …]
DsourceMapValidationClasses.sourcemap.txt23 > class Greeter {
33 > function foo(greeting: string): Greeter {
34 > return new Greeter(greeting);
37 > var greeter = new Greeter("Hello, world!");
41 > var greeters: Greeter[] = []; /* inline block comment */
42 > greeters[0] = new Greeter(greeting);
44 > greeters.push(new Greeter(restGreetings[i]));
84 > class Greeter {
94 > function foo(greeting: string): Greeter {
95 > return new Greeter(greeting);
[all …]
DbpSpan_classes.baseline8 > class Greeter {
18 > function foo(greeting: string): Greeter {
19 > return new Greeter(greeting);
22 > var greeter = new Greeter("Hello, world!");
26 > var greeters: Greeter[] = []; /* inline block comment */
27 > greeters[0] = new Greeter(greeting);
29 > greeters.push(new Greeter(restGreetings[i]));
48 > class Greeter {
58 > function foo(greeting: string): Greeter {
59 > return new Greeter(greeting);
[all …]
DsourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.symbols2 class Greeter {
3 >Greeter : Symbol(Greeter, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatem…
6 >a : Symbol(Greeter.a, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.…
9 >returnA : Symbol(Greeter.returnA, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedTh…
10 >this.a : Symbol(Greeter.a, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisState…
11 >this : Symbol(Greeter, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement…
12 >a : Symbol(Greeter.a, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.…
DnameOrDottedSpan_classes.baseline35 4 > class Greeter {
38 4 > class Greeter {
41 >Greeter
43 4 > class Greeter {
128 14 > function foo(greeting: string): Greeter {
131 14 > function foo(greeting: string): Greeter {
136 14 > function foo(greeting: string): Greeter {
141 14 > function foo(greeting: string): Greeter {
144 14 > function foo(greeting: string): Greeter {
147 >Greeter
[all …]
DsourceMapValidationDecorators.symbols51 class Greeter {
52 >Greeter : Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 116))
62 >greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
81 >greet : Symbol(Greeter.greet, Decl(sourceMapValidationDecorators.ts, 18, 5))
84 >this.greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
85 >this : Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 116))
86 >greeting : Symbol(Greeter.greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
96 >x : Symbol(Greeter.x, Decl(sourceMapValidationDecorators.ts, 24, 5))
105 >x1 : Symbol(Greeter.x1, Decl(sourceMapValidationDecorators.ts, 28, 22))
108 >fn : Symbol(Greeter.fn, Decl(sourceMapValidationDecorators.ts, 32, 35))
[all …]
DsourceMapSample.errors.txt1 …iler/sourceMapSample.ts(14,45): error TS2694: Namespace 'Foo.Bar' has no exported member 'Greeter'.
8 class Greeter {
18 function foo(greeting: string): Foo.Bar.Greeter {
20 !!! error TS2694: Namespace 'Foo.Bar' has no exported member 'Greeter'.
21 return new Greeter(greeting);
24 var greeter = new Greeter("Hello, world!");
28 var greeters: Greeter[] = [];
29 greeters[0] = new Greeter(greeting);
31 greeters.push(new Greeter(restGreetings[i]));
DtemplateLiteralsAndDecoratorMetadata.js3 export class Greeter { class
20 exports.Greeter = void 0;
21 var Greeter = /** @class */ (function () {
22 function Greeter() { class in Greeter
28 ], Greeter.prototype, "greeting");
29 return Greeter;
31 exports.Greeter = Greeter;
DexportAssignmentWithoutIdentifier1.js2 function Greeter() { class
5 Greeter.prototype.greet = function () {
8 export = new Greeter();
13 function Greeter() {
16 Greeter.prototype.greet = function () {
19 module.exports = new Greeter();
/third_party/typescript/tests/cases/compiler/
DsourceMapValidationClasses.ts5 class Greeter { class
15 function foo(greeting: string): Greeter {
16 return new Greeter(greeting);
19 var greeter = new Greeter("Hello, world!");
23 var greeters: Greeter[] = []; /* inline block comment */
24 greeters[0] = new Greeter(greeting);
26 greeters.push(new Greeter(restGreetings[i]));
DsourceMapSample.ts5 class Greeter { class
15 function foo(greeting: string): Foo.Bar.Greeter {
16 return new Greeter(greeting);
19 var greeter = new Greeter("Hello, world!");
23 var greeters: Greeter[] = [];
24 greeters[0] = new Greeter(greeting);
26 greeters.push(new Greeter(restGreetings[i]));

1234567