Home
last modified time | relevance | path

Searched defs:foo (Results 1 – 25 of 4998) sorted by relevance

12345678910>>...200

/third_party/typescript/tests/baselines/reference/
DprivateNameDuplicateField.js6 #foo = "foo"; field in Field.A_Field_Field
7 #foo = "foo"; field in Field.A_Field_Field
12 #foo = "foo"; field in Field.A_Field_Method
13 #foo() { } method in Field.A_Field_Method
18 #foo = "foo"; field in Field.A_Field_Getter
19 get #foo() { return ""} method in Field.A_Field_Getter
24 #foo = "foo"; field in Field.A_Field_Setter
25 set #foo(value: string) { } method in Field.A_Field_Setter
30 #foo = "foo"; field in Field.A_Field_StaticField
31 static #foo = "foo"; field in Field.A_Field_StaticField
[all …]
DassignmentToExpandingArrayType.js4 x[0] = { foo: 'hi' } property
5 x[0] = { foo: 'hi' } property
6 x[0] = { foo: 'hi' } property
7 x[0] = { foo: 'hi' } property
8 x[0] = { foo: 'hi' } property
9 x[0] = { foo: 'hi' } property
10 x[0] = { foo: 'hi' } property
11 x[0] = { foo: 'hi' } property
12 x[0] = { foo: 'hi' } property
13 x[0] = { foo: 'hi' } property
[all …]
DspreadOfObjectLiteralAssignableToIndexSignature.js2 const foo: Record<never, never> = {} // OK constant
6 recordOfRecords.propA = {...(foo !== undefined ? {foo} : {})} // OK field
7 recordOfRecords.propB = {...(foo && {foo})} // OK field
8 recordOfRecords.propC = {...(foo !== undefined && {foo})} // error'd in 3.7 beta, should be OK field
12 recordsOfRecordsOrEmpty.propA = {...(foo !== undefined ? {foo} : {})} // OK field
13 recordsOfRecordsOrEmpty.propB = {...(foo && {foo})} // OK field
14 recordsOfRecordsOrEmpty.propC = {...(foo !== undefined && {foo})} // OK field
29 var foo = {}; // OK variable
31 recordOfRecords.propA = __assign({}, (foo !== undefined ? { foo: foo } : {})); // OK property
32 recordOfRecords.propB = __assign({}, (foo && { foo: foo })); // OK property
[all …]
DprivateWriteOnlyAccessorRead.js3 set #value(v: { foo: { bar: number } }) {} property
9 const foo = { bar: 1 }; variable
11 this.#value = { foo }; // ok field
12 this.#value = { foo }; // ok field
15 ({ o: this.#value } = { o: { foo } }); //ok field
16 ({ ...this.#value } = { foo }); //ok field
18 ({ foo: this.#value.foo } = { foo }); //error field
21 } = { foo }); //error field
67 const foo = { bar: 1 }; variable
69 __classPrivateFieldSet(this, _Test_instances, { foo }, "a", _Test_value_set); // ok field
[all …]
DdestructuringSameNames.js4 let { foo, foo: bar } = { foo: 1 }; property
5 ({ foo, foo } = { foo: 2 }); property
6 ({ foo, foo: bar } = { foo: 3 }); property
7 ({ foo: bar, foo } = { foo: 4 }); property
8 ({ foo, bar: foo } = { foo: 3, bar: 33 }); property
9 ({ bar: foo, foo } = { foo: 4, bar: 44 }); property
10 ({ foo: bar, foo: bar } = { foo: 5 }); property
11 ({ foo: bar, bar: foo } = { foo: 6, bar: 66 }); property
12 ({ foo: bar, foo: bar } = { foo: 7 }); property
36 var _p = { foo: 1 }, foo = _p.foo, bar = _p.foo; property
[all …]
DstringLiteralTypesInImplementationSignatures2.js5 function foo(x: 'hi') { } function
9 foo(x: 'hi') { } method in C
27 foo(x: 'hi') { }, method
28 foo(x: 'a') { }, method
38 C.prototype.foo = function (x) { }; method in C
43 foo: function (x) { }, method
44 foo: function (x) { } method
/third_party/typescript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/
DsubtypesOfTypeParameterWithConstraints.ts4 foo: T; property in C3
9 foo: T; // ok property in D1
14 foo: T; // ok property in D2
19 foo: U; // error property in D3
24 foo: U; // ok property in D4
33 foo: T; // ok property in D5
38 foo: T; property in D6
43 foo: T; // ok property in D7
50 foo: U; // error property in D8
55 foo: U; // ok property in D9
[all …]
DsubtypesOfTypeParameterWithRecursiveConstraints.ts3 class Foo<T> { foo: T; } property in Foo
58 foo: T; property in Base
63 foo: T property in D1
68 foo: U property in D2
73 foo: V property in D3
78 foo: T property in D4
83 foo: U property in D5
88 foo: V property in D6
93 foo: T property in D7
98 foo: U property in D8
[all …]
DsubtypesOfAny.ts5 foo: any; property
11 foo: number; property
17 foo: string; property
23 foo: boolean; property
29 foo: Date; property
35 foo: RegExp; property
41 foo: { bar: number }; property
47 foo: number[]; property
53 foo: I8; property
56 class A { foo: number; } property in A
[all …]
DenumIsNotASubtypeOfAnythingButNumber.ts6 foo: E; // ok property
12 foo: E; // ok property
18 foo: E; property
24 foo: E; property
30 foo: E; property
36 foo: E; property
42 foo: E; property
48 foo: E; property
54 foo: E; property
57 class A { foo: number; } property in A
[all …]
DundefinedIsSubtypeOfEverything.ts4 foo: typeof undefined; property in Base
8 foo: any; property in D0
12 foo: typeof undefined; property in DA
16 foo: string; property in D1
20 foo: String; property in D1A
25 foo: number; property in D2
29 foo: Number; property in D2A
34 foo: boolean; property in D3
38 foo: Boolean; property in D3A
43 foo: RegExp; property in D4
[all …]
DunionSubtypeIfEveryConstituentTypeIsSubtype.ts9 foo: string | number; // ok property
15 foo: string | number; // error string is not subtype of number property
21 foo: string | number; // error numer is not subtype of string property
28 foo: string | number; property
35 foo: string | number; property
42 foo: string | number; property
49 foo: string | number; property
56 foo: string | number; property
63 foo: string | number; property
67 class A { foo: number; } property in A
[all …]
DsubtypesOfTypeParameterWithConstraints4.ts3 class Foo { foo: number; } property in Foo
32 foo: T; property in B1
37 foo: T; // ok property in D1
42 foo: U; // ok property in D2
47 foo: V; // error property in D3
52 foo: T; // ok property in D4
57 foo: U; // error property in D5
62 foo: V; // error property in D6
67 foo: T; // error property in D7
72 foo: U; // ok property in D8
[all …]
/third_party/typescript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/
DspecializedSignatureIsSubtypeOfNonSpecializedSignature.ts4 function foo(x: 'a'); function
9 foo(x: 'a'); method in C
15 foo(x: 'a'); method in C2
22 foo(x: 'a'); method in C3
32 foo(x: 'a'); method
33 foo(x: string); method
34 foo(x: number); method
41 foo(x: 'a'); method
42 foo(x: string); method
43 foo(x: T); method
[all …]
DspecializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts3 function foo(x: 'a'); function
7 foo(x: 'a'); method in C
13 foo(x: 'a'); method in C2
19 foo(x: 'a'); method in C3
27 foo(x: 'a'); method
28 foo(x: number); method
34 foo(x: 'a'); method
35 foo(x: T); method
41 foo(x: 'a'); method
42 foo(x: T); method
[all …]
DrestParametersWithArrayTypeAnnotations.ts3 function foo(...x: number[]) { } function
8 foo(...x: number[]) { } method in C
13 foo(...x: number[], ...y: number[]); method
18 foo(...x: number[]); variable
35 foo(...x: Array<string>) { } method in C2
40 foo(...x: Array<string>, ...y: Array<string>); method
45 foo(...x: Array<string>); variable
DcallSignaturesWithOptionalParameters2.ts3 function foo(x?: number); function
17 foo(x?: number); method in C
35 foo(x: number, y?: number); method
36 foo(x: number, y?: number, z?: number); method
50 foo(x: number, y?: number); variable
51 foo(x: number, y?: number, z?: number); variable
/third_party/typescript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/
DanyAssignableToEveryType2.ts5 foo: any; // ok, any identical to itself property
11 foo: any; property
17 foo: any; property
23 foo: any; property
29 foo: any; property
35 foo: any; property
41 foo: any; property
47 foo: any; property
53 foo: any; property
56 class A { foo: number; } property in A
[all …]
/third_party/typescript/tests/cases/conformance/types/members/
DduplicatePropertyNames.ts4 foo: string; property
5 foo: string; property
9 foo(): string; method
10 foo(): string; method
14 foo: T; property
15 foo: T; property
19 foo: string; property in C
20 foo: string; property in C
30 foo: string; property
31 foo: string; property
[all …]
DtypesWithSpecializedCallSignatures.ts3 class Base { foo: string } property in Base
8 foo(x: 'hi'): Derived1; method in C
18 foo(x: 'hi'): Derived1; method
19 foo(x: 'bye'): Derived2; method
20 foo(x: string): Base; method
26 foo(x: 'bye'): Derived2; variable
27 foo(x: string): Base; variable
/third_party/typescript/tests/cases/conformance/interfaces/declarationMerging/
DtwoMergedInterfacesWithDifferingOverloads.ts4 foo(x: number): number; method
5 foo(x: string): string; method
9 foo(x: Date): Date; method
13 foo(x: T): number; method
14 foo(x: string): string; method
18 foo(x: T): Date; method
19 foo(x: Date): string; method
27 foo(x: T, y: U): string; method
28 foo(x: string, y: string): number; method
32 foo<W>(x: W, y: W): W; method
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dconvert-floats.h3 struct foo { struct
4 float bar, baz;
5 double bazz;
6 long double* bazzz;
7 float _Complex complexFloat;
8 double _Complex complexDouble;
/third_party/typescript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/
DobjectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts5 class One { foo: string } property in One
6 class Two { foo: string } property in Two
7 interface Three { foo: string } property
8 interface Four<T> { foo: T } property
11 foo: T; property
15 foo<T extends U, U extends One>(x: T, y: U): string { return null; } method in A
19 foo(x: T, y: U): string { return null; } method in B
23 foo(x: T, y: U): string { return null; } method in C
27 foo(x: T, y: U): string { return null; } method in D
31 foo(x: T, y: U): string; method
[all …]
DobjectTypesIdentityWithCallSignaturesWithOverloads.ts4 foo(x: number): number; method in A
10 foo(x: number): number; method in B
16 foo(x: number): number; method in C
23 foo(x: number): number; method
24 foo(x: string): string; method
28 foo(x: number): number; method
29 foo(x: string): string; method
30 foo(x: T): T; method
35 foo(x: string): string variable
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dconvert-floats.rs16 pub struct foo { struct
26 const UNINIT: ::std::mem::MaybeUninit<foo> = in bindgen_test_layout_foo() argument
89 impl Default for foo { implementation

12345678910>>...200