Home
last modified time | relevance | path

Searched refs:foo (Results 1 - 25 of 3372) sorted by relevance

12345678910>>...135

/third_party/typescript/tests/baselines/reference/
H A DnullPropertyName.js2 function foo() {} function
4 foo.x = 1;
5 foo.y = 1;
8 foo.break = 1;
9 foo.case = 1;
10 foo.catch = 1;
11 foo.class = 1;
12 foo.const = 1;
13 foo.continue = 1;
14 foo
[all...]
H A DjsDeclarationsFunctionKeywordPropExhaustive.js2 function foo() {} function
4 foo.x = 1;
5 foo.y = 1;
8 foo.break = 1;
9 foo.case = 1;
10 foo.catch = 1;
11 foo.class = 1;
12 foo.const = 1;
13 foo.continue = 1;
14 foo
[all...]
H A DprivateNameDuplicateField.js6 #foo = "foo";
7 #foo = "foo";
12 #foo = "foo";
13 #foo() { }
18 #foo = "foo";
19 get #foo() { retur
[all...]
H A DjsxAndTypeAssertion.js4 class foo {}
11 x = <foo>hello {<foo>{}} </foo>;
13 x = <foo test={<foo>{}}>hello</foo>;
15 x = <foo test={<foo>{}}>hello{<foo>{}}</fo
[all...]
H A DdestructuringSameNames.js4 let { foo, foo: bar } = { foo: 1 }; property
5 ({ foo, foo } = { foo: 2 }); property
6 ({ foo, foo: bar } = { foo: 3 }); property
7 ({ foo property
8 ({ foo, bar: foo } = { foo: 3, bar: 33 }); global() property
9 ({ bar: foo, foo } = { foo: 4, bar: 44 }); global() property
10 ({ foo: bar, foo: bar } = { foo: 5 }); global() property
11 ({ foo: bar, bar: foo } = { foo: 6, bar: 66 }); global() property
12 ({ foo: bar, foo: bar } = { foo: 7 }); global() property
37 (_a = { foo: 2 }, foo = _a.foo, foo = _a.foo); global() property
38 (_b = { foo: 3 }, foo = _b.foo, bar = _b.foo); global() property
39 (_c = { foo: 4 }, bar = _c.foo, foo = _c.foo); global() property
40 (_d = { foo: 3, bar: 33 }, foo = _d.foo, foo = _d.bar); global() property
41 (_e = { foo: 4, bar: 44 }, foo = _e.bar, foo = _e.foo); global() property
42 (_f = { foo: 5 }, bar = _f.foo, bar = _f.foo); global() property
43 (_g = { foo: 6, bar: 66 }, bar = _g.foo, foo = _g.bar); global() property
44 (_h = { foo: 7 }, bar = _h.foo, bar = _h.foo); global() property
[all...]
H A DassignmentToExpandingArrayType.js4 x[0] = { foo: 'hi' }
5 x[0] = { foo: 'hi' }
6 x[0] = { foo: 'hi' }
7 x[0] = { foo: 'hi' }
8 x[0] = { foo: 'hi' }
9 x[0] = { foo: 'hi' }
10 x[0] = { foo: 'hi' }
11 x[0] = { foo: 'hi' }
12 x[0] = { foo: 'hi' }
13 x[0] = { foo
[all...]
H A DcontrolFlowOptionalChain.js163 type Thing = { foo: string | number, bar(): number, baz: object };
166 if (o?.foo === value) {
167 o.foo;
169 if (o?.["foo"] === value) {
170 o["foo"];
175 if (o?.foo == value) {
176 o.foo;
178 if (o?.["foo"] == value) {
179 o["foo"];
187 if (o?.foo
[all...]
H A DcallWithSpreadES6.js3 foo(x: number, y: number, ...z: string[]);
6 function foo(x: number, y: number, ...z: string[]) { function
14 foo(1, 2, "abc");
15 foo(1, 2, ...a);
16 foo(1, 2, ...a, "abc");
18 obj.foo(1, 2, "abc");
19 obj.foo(1, 2, ...a);
20 obj.foo(1, 2, ...a, "abc");
22 (obj.foo)(1, 2, "abc");
23 (obj.foo)(
[all...]
H A DcallWithSpread.js3 foo(x: number, y: number, ...z: string[]): X;
6 function foo(x: number, y: number, ...z: string[]) { function
14 foo(1, 2, "abc");
15 foo(1, 2, ...a);
16 foo(1, 2, ...a, "abc");
18 obj.foo(1, 2, "abc");
19 obj.foo(1, 2, ...a);
20 obj.foo(1, 2, ...a, "abc");
22 obj.foo(1, 2, ...a).foo(
[all...]
H A DspecializedSignatureIsNotSubtypeOfNonSpecializedSignature.js2 function foo(x: 'a');
3 function foo(x: number) { } function
6 foo(x: 'a');
7 foo(x: number);
8 foo(x: any) { }
12 foo(x: 'a');
13 foo(x: T);
14 foo(x: any) { }
18 foo(x: 'a');
19 foo(
[all...]
H A DfunctionConstraintSatisfaction.js4 function foo<T extends Function>(x: T): T { return x; }
12 foo: string;
19 var r = foo(new Function());
20 var r1 = foo((x) => x);
21 var r2 = foo((x: string[]) => x);
22 var r3 = foo(function (x) { return x });
23 var r4 = foo(function (x: string[]) { return x });
24 var r5 = foo(i);
25 var r6 = foo(C);
26 var r7 = foo(
66 function foo(x) { return x; } global() function
[all...]
H A DspecializedSignatureIsSubtypeOfNonSpecializedSignature.js5 function foo(x: 'a');
6 function foo(x: string);
7 function foo(x: any) { } function
10 foo(x: 'a');
11 foo(x: string);
12 foo(x: any) { }
16 foo(x: 'a');
17 foo(x: string);
18 foo(x: T);
19 foo(
[all...]
H A DtaggedTemplateStringsWithOverloadResolution1_ES6.js2 function foo(strs: TemplateStringsArray): number;
3 function foo(strs: TemplateStringsArray, x: number): string;
4 function foo(strs: TemplateStringsArray, x: number, y: number): boolean;
5 function foo(strs: TemplateStringsArray, x: number, y: string): {};
6 function foo(...stuff: any[]): any {
10 var a = foo([]); // number
11 var b = foo([], 1); // string
12 var c = foo([], 1, 2); // boolean
13 var d = foo([], 1, true); // boolean (with error)
14 var e = foo([],
26 function foo(...stuff) { global() function
[all...]
H A DoptionalChainingInTypeAssertions(target=es2015).js6 const foo = new Foo();
8 (foo.m as any)?.();
9 (<any>foo.m)?.();
11 /*a1*/(/*a2*/foo.m as any/*a3*/)/*a4*/?.();
12 /*b1*/(/*b2*/<any>foo.m/*b3*/)/*b4*/?.();
15 (foo?.m as any).length;
16 (<any>foo?.m).length;
17 (foo?.["m"] as any).length;
18 (<any>foo?.["m"]).length;
25 const foo
[all...]
H A DcallSignatureWithOptionalParameterAndInitializer.js4 function foo(x?: number = 1) { } function
5 var f = function foo(x?: number = 1) { }
8 foo(1);
9 foo();
16 foo(x?: number = 1) { }
20 c.foo();
21 c.foo(1);
25 foo(x: number, y?: number = 1);
31 i.foo(1);
32 i.foo(
[all...]
H A DcallSignaturesWithOptionalParameters.js4 function foo(x?: number) { } function
5 var f = function foo(x?: number) { }
8 foo(1);
9 foo();
16 foo(x?: number) { }
20 c.foo();
21 c.foo(1);
25 foo(x: number, y?: number);
31 i.foo(1);
32 i.foo(
[all...]
H A DcallSignaturesWithParameterInitializers.js4 function foo(x = 1) { } function
5 var f = function foo(x = 1) { }
8 foo(1);
9 foo();
16 foo(x = 1) { }
20 c.foo();
21 c.foo(1);
26 foo(x: number, y = 1);
32 i.foo(1);
33 i.foo(
[all...]
H A DexportAssignmentTopLevelEnumdule.js4 enum foo {
7 module foo {
10 export = foo;
13 import foo = require("./foo_0");
14 var color: foo;
15 if(color === foo.green){
16 color = foo.answer;
23 var foo;
24 (function (foo) {
25 foo[fo
[all...]
H A DmergedDeclarations3.js15 export function foo() {
20 module foo {
26 export module foo {
32 module foo {
37 M.foo() // ok
38 M.foo.x // error
39 M.foo.y // ok
40 M.foo.z // error
59 function foo() {
61 M.foo
[all...]
H A DblockScopedSameNameFunctionDeclarationES5.js2 function foo(a: number) { function
4 function foo() { } // duplicate function
5 foo();
6 foo(10); // not ok
9 function foo() { } // duplicate function
10 foo();
11 foo(10); // not ok
13 foo(10); // not ok
14 foo();
16 foo(1
[all...]
H A DblockScopedSameNameFunctionDeclarationES6.js2 function foo(a: number) { function
4 function foo() { } // duplicate
5 foo();
6 foo(10); // not ok
9 function foo() { } // duplicate
10 foo();
11 foo(10);// not ok
13 foo(10); // not ok
14 foo();
16 foo(1
[all...]
H A DblockScopedSameNameFunctionDeclarationStrictES5.js3 function foo(a: number) { function
5 function foo() { } // Error to declare function in block scope
6 foo();
7 foo(10); // not ok
10 function foo() { } // Error to declare function in block scope
11 foo();
12 foo(10); // not ok
14 foo(10);
15 foo(); // not ok - needs number
17 foo(1
[all...]
H A DblockScopedSameNameFunctionDeclarationStrictES6.js3 function foo(a: number) { function
5 function foo() { }
6 foo();
7 foo(10); // not ok
10 function foo() { }
11 foo();
12 foo(10); // not ok
14 foo(10);
15 foo(); // not ok
17 foo(1
[all...]
H A DcontextuallyTypedParametersWithInitializers.js4 declare function id3<T extends (x: { foo: any }) => any>(input: T): T;
5 declare function id4<T extends (x: { foo?: number }) => any>(input: T): T;
8 const f10 = function ({ foo = 42 }) { return foo };
9 const f11 = id1(function ({ foo = 42 }) { return foo });
10 const f12 = id2(function ({ foo = 42 }) { return foo });
11 const f13 = id3(function ({ foo = 42 }) { return foo });
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_namespace_pkgs.py75 import foo.one namespace
76 self.assertEqual(foo.one.attr, 'portion1 foo one')
80 import foo.two namespace
83 import foo.one namespace
86 self.assertEqual(foo.__spec__.loader.module_repr(foo),
87 "<module 'foo' (namespace)>")
94 # Make sure only 'foo.one' can be imported
95 import foo namespace
99 import foo.two global() namespace
105 import foo.two global() namespace
113 import foo.one global() namespace
114 import foo.two global() namespace
123 import foo.one global() namespace
124 import foo.two global() namespace
138 import foo.one global() namespace
143 import foo.just_created global() namespace
155 import foo.just_created global() namespace
159 import foo.just_created global() namespace
167 import foo.one global() namespace
168 import foo.two global() namespace
174 import foo.one global() namespace
175 import foo.two global() namespace
180 import foo.two global() namespace
181 import foo.one global() namespace
190 import foo.one global() namespace
195 import foo.two global() namespace
202 import foo.one global() namespace
203 import foo.two global() namespace
214 import foo.one global() namespace
219 import foo.two global() namespace
226 import foo.one global() namespace
227 import foo.two global() namespace
239 import foo.one global() namespace
241 import foo.two global() namespace
308 import foo.one global() namespace
330 import foo.one global() namespace
335 import foo global() namespace
337 import foo.two global() namespace
340 import foo.two global() namespace
343 import foo.one global() namespace
345 import foo.two global() namespace
352 import foo.two global() namespace
361 import foo global() namespace
367 import foo global() namespace
373 import foo global() namespace
378 import foo global() namespace
[all...]

Completed in 21 milliseconds

12345678910>>...135