Home
last modified time | relevance | path

Searched refs:any (Results 1 - 25 of 3035) sorted by relevance

12345678910>>...122

/third_party/typescript/tests/baselines/reference/
H A DdecoratorsOnComputedProperties.js11 @x ["property"]: any;
12 @x [Symbol.toStringTag]: any;
13 @x ["property2"]: any = 2;
14 @x [Symbol.iterator]: any = null;
15 ["property3"]: any;
16 [Symbol.isConcatSpreadable]: any;
17 ["property4"]: any = 2;
18 [Symbol.match]: any = null;
19 [foo()]: any;
20 @x [foo()]: any;
[all...]
H A DcomplexNarrowingWithAny.js67 constructor(any){}
73 constructor(any){}
76 constructor(any){}
82 constructor(any){}
88 constructor(any){}
94 constructor(any){}
111 // constructor(any){}
120 constructor(any){}
126 constructor(any){}
133 _text_0:any;
[all...]
H A Dgiant.js25 public psF(param:any) { }
26 public set psF(param:any)
29 private rsF(param:any) { }
30 private set rsF(param:any)
33 static tsF(param:any) { }
34 static set tsF(param:any)
45 (...p3: any[]);
47 (p6: string, ...p7: any[]);
48 //(p8?: string, ...p9: any[]);
49 //(p10:string, p8?: string, ...p9: any[]);
[all...]
H A DramdaToolsNoInfinite.js6 type Head<T extends any[]> =
7 T extends [any, ...any[]]
11 type Tail<T extends any[]> =
12 ((...t: T) => any) extends ((_: any, ...tail: infer TT) => any)
16 type HasTail<T extends any[]> =
17 T extends ([] | [any])
21 type Last<T extends any[]>
[all...]
H A DrenamingDestructuredPropertyInFunctionType.js5 type F1 = (arg: number) => any; // OK
6 type F2 = ({ a: string }: O) => any; // Error
7 type F3 = ({ a: string, b, c }: O) => any; // Error
8 type F4 = ({ a: string }: O) => any; // Error
9 type F5 = ({ a: string, b, c }: O) => any; // Error
15 type G1 = new (arg: number) => any; // OK
16 type G2 = new ({ a: string }: O) => any; // Error
17 type G3 = new ({ a: string, b, c }: O) => any; // Error
18 type G4 = new ({ a: string }: O) => any; // Error
19 type G5 = new ({ a: string, b, c }: O) => any; // Erro
[all...]
H A DspecializedSignatureIsNotSubtypeOfNonSpecializedSignature.js8 foo(x: any) { }
14 foo(x: any) { }
20 foo(x: any) { }
92 declare function foo(x: 'a'): any;
94 foo(x: 'a'): any;
95 foo(x: number): any;
98 foo(x: 'a'): any;
99 foo(x: T): any;
102 foo(x: 'a'): any;
103 foo(x: T): any;
[all...]
H A DunderscoreTest1.js9 (value: T, index: any, list: any): U;
13 (accumulator: U, value: T, index: any, list: any): U;
16 interface Tuple2<T0, T1> extends Array<any> {
21 interface Tuple3<T0, T1, T2> extends Array<any> {
27 interface Tuple4<T0, T1, T2, T3> extends Array<any> {
37 values(): any[];
38 pairs(): any[][];
39 invert(): any;
[all...]
H A DcontrolFlowManyCallExpressionStatementsPerf.js7 test(state as any && state);
8 test(state as any && state);
9 test(state as any && state);
10 test(state as any && state);
11 test(state as any && state);
12 test(state as any && state);
13 test(state as any && state);
14 test(state as any && state);
15 test(state as any && state);
16 test(state as any
[all...]
H A DanyAssignabilityInInheritance.js2 // any is not a subtype of any other types, errors expected on all the below derived classes unless otherwise noted
5 [x: string]: any;
6 foo: any; // ok, any identical to itself
9 var a: any;
12 declare function foo2(x: any): any;
13 var r3 = foo2(a); // any, not a subtype of number so it skips that overload, is a subtype of itself so it picks second (if truly ambiguous it would pick first overload)
16 declare function foo3(x: any)
[all...]
H A DaliasOfGenericFunctionWithRestBehavedSameAsUnaliased.js4 type ExtendedMapper<HandledInputT, OutputT, ArgsT extends any[]> = (name : string, mixed : HandledInputT, ...args : ArgsT) => OutputT;
5 type a = ExtendedMapper<any, any, [any]>;
6 type b = ExtendedMapper<any, any, any[]>;
11 type ExtendedMapper1<HandledInputT, OutputT, ArgsT extends any[]> = (
15 type a1 = ExtendedMapper1<any, any, [an
[all...]
H A DmappedTypeWithAny.js5 declare let x0: keyof any;
6 declare let x1: { [P in any]: Item };
8 declare let x3: { [P in keyof any]: Item };
9 declare let x4: ItemMap<any>;
21 declare let z: StrictDataMap<any>;
29 // map over `any` differently, depending on whether `T`
36 // array and tuple types. *Ideally*, when `U` is later instantiated with `any`,
39 // inconsistent for two instantiations of `Objectish<any>` to produce different outputs
43 function bar(arrayish: Arrayish<any>, objectish: Objectish<any>, indirectArrayis
[all...]
H A Des5-asyncFunctionTryStatements.js2 declare var x: any, y: any, z: any, a: any, b: any, c: any;
5 var x: any, y: any;
15 var x: any, y: any;
[all...]
H A DimportHelpersES6.js4 declare var dec: any;
16 export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
18 export declare function __metadata(metadataKey: any, metadataValue: any): Function;
19 export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
20 export declare function __classPrivateFieldGet(a: any,
[all...]
H A DmemberFunctionsWithPublicPrivateOverloads.js5 private foo(x: any, y?: any) { }
10 private bar(x: any, y?: any) { }
14 private static foo(x: any, y?: any) { }
18 private baz(x: any, y?: any) { }
23 private static bar(x: any, y?: any) { }
[all...]
H A DnodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).js21 export const a = (null as any as import("pkg", { assert: {"resolution-mode": "foobar"} }).RequireInterface);
22 export const b = (null as any as import("pkg", { assert: {"resolution-mode": "import"} }).ImportInterface);
29 export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface);
30 export const b = (null as any as import("pkg", {"resolution-mode": "import"}).ImportInterface);
37 export const a = (null as any as import("pkg", { assert: {"bad": "require"} }).RequireInterface);
38 export const b = (null as any as import("pkg", { assert: {"bad": "import"} }).ImportInterface);
45 export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface);
46 export const b = (null as any as import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface);
56 export const a = (null as any as import("pkg", Asserts1).RequireInterface);
57 export const b = (null as any a
[all...]
H A DnodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).js21 export const a = (null as any as import("pkg", { assert: {"resolution-mode": "foobar"} }).RequireInterface);
22 export const b = (null as any as import("pkg", { assert: {"resolution-mode": "import"} }).ImportInterface);
29 export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface);
30 export const b = (null as any as import("pkg", {"resolution-mode": "import"}).ImportInterface);
37 export const a = (null as any as import("pkg", { assert: {"bad": "require"} }).RequireInterface);
38 export const b = (null as any as import("pkg", { assert: {"bad": "import"} }).ImportInterface);
45 export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface);
46 export const b = (null as any as import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface);
56 export const a = (null as any as import("pkg", Asserts1).RequireInterface);
57 export const b = (null as any a
[all...]
/third_party/rust/crates/rustix/src/termios/
H A Dmod.rs14 #[cfg(not(any(
26 #[cfg(not(any(
38 #[cfg(not(any(
50 #[cfg(not(any(
62 #[cfg(not(any(
76 #[cfg(not(any(
90 #[cfg(not(any(
104 #[cfg(not(any(
118 #[cfg(not(any(
127 #[cfg(not(any(
[all...]
H A Dconstants.rs2 #[cfg(not(any(
13 #[cfg(not(any(
24 #[cfg(not(any(
35 #[cfg(not(any(
46 #[cfg(not(any(
59 #[cfg(not(any(
72 #[cfg(not(any(
85 #[cfg(not(any(
98 #[cfg(not(any(
106 #[cfg(not(any(
[all...]
/third_party/rust/crates/rustix/src/backend/libc/mm/
H A Dtypes.rs34 #[cfg(any(target_os = "android", target_os = "linux"))]
37 #[cfg(any(target_os = "android", target_os = "linux"))]
53 #[cfg(not(any(
72 #[cfg(not(any(
88 #[cfg(not(any(
105 #[cfg(not(any(
119 #[cfg(not(any(
133 #[cfg(not(any(
150 #[cfg(not(any(
167 #[cfg(not(any(
[all...]
/third_party/rust/crates/rustix/src/fs/
H A Dmod.rs7 #[cfg(any(target_os = "android", target_os = "linux"))]
13 #[cfg(not(any(
26 #[cfg(any(target_os = "ios", target_os = "macos"))]
28 #[cfg(any(target_os = "ios", target_os = "macos"))]
32 #[cfg(any(target_os = "ios", target_os = "macos"))]
34 #[cfg(not(any(
48 #[cfg(any(target_os = "android", target_os = "freebsd", target_os = "linux"))]
50 #[cfg(any(target_os = "android", target_os = "linux"))]
52 #[cfg(any(target_os = "android", target_os = "linux"))]
54 #[cfg(any(target_o
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
H A DAnyTest.cs44 var any = Any.Pack(message); in Pack()
45 Assert.AreEqual("type.googleapis.com/protobuf_unittest3.TestAllTypes", any.TypeUrl); in Pack()
46 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack()
53 var any = Any.Pack(message, "foo.bar/baz"); in Pack_WithCustomPrefix()
54 Assert.AreEqual("foo.bar/baz/protobuf_unittest3.TestAllTypes", any.TypeUrl); in Pack_WithCustomPrefix()
55 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack_WithCustomPrefix()
62 var any = Any.Pack(message, "foo.bar/baz/"); in Pack_WithCustomPrefixTrailingSlash()
63 Assert.AreEqual("foo.bar/baz/protobuf_unittest3.TestAllTypes", any.TypeUrl); in Pack_WithCustomPrefixTrailingSlash()
64 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack_WithCustomPrefixTrailingSlash()
71 var any in Unpack_WrongType()
[all...]
/third_party/protobuf/src/google/protobuf/
H A Dany_test.cc58 google::protobuf::Any any; in TEST() local
59 any.PackFrom(payload); in TEST()
63 EXPECT_FALSE(any.UnpackTo(&dest)); in TEST()
70 google::protobuf::Any any; in TEST() local
71 any.PackFrom(submessage); in TEST()
73 message.mutable_any_value()->PackFrom(any); in TEST()
79 any.Clear(); in TEST()
81 ASSERT_TRUE(message.any_value().UnpackTo(&any)); in TEST()
82 ASSERT_TRUE(any.UnpackTo(&submessage)); in TEST()
89 google::protobuf::Any any; in TEST() local
109 google::protobuf::Any any; TEST() local
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
H A Dany_test.cc15 #include "absl/types/any.h"
17 // This test is a no-op when absl::any is an alias for std::any.
94 static_assert(std::is_nothrow_default_constructible<absl::any>(), ""); in TEST()
95 static_assert(std::is_nothrow_move_constructible<absl::any>(), ""); in TEST()
96 static_assert(std::is_nothrow_move_assignable<absl::any>(), ""); in TEST()
97 static_assert(noexcept(std::declval<absl::any&>().has_value()), ""); in TEST()
98 static_assert(noexcept(std::declval<absl::any&>().type()), ""); in TEST()
99 static_assert(noexcept(absl::any_cast<int>(std::declval<absl::any*>())), ""); in TEST()
101 noexcept(std::declval<absl::any in TEST()
[all...]
/third_party/rust/crates/rustix/src/backend/libc/termios/
H A Dtypes.rs15 /// `TCSAFLUSH`—Discard any pending input and then make the change
95 #[cfg(not(any(
140 #[cfg(not(any(target_os = "ios", target_os = "macos")))]
144 #[cfg(not(any(target_os = "ios", target_os = "macos")))]
148 #[cfg(not(any(target_os = "ios", target_os = "macos")))]
152 #[cfg(not(any(target_os = "ios", target_os = "macos")))]
156 #[cfg(not(any(target_os = "ios", target_os = "macos")))]
160 #[cfg(not(any(target_os = "ios", target_os = "macos")))]
164 #[cfg(not(any(target_os = "ios", target_os = "macos")))]
168 #[cfg(not(any(target_o
[all...]
/third_party/rust/crates/rustix/examples/
H A Dstdio.rs14 not(any(windows, target_os = "fuchsia")),
69 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
73 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
77 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
81 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
85 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
89 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
93 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
97 #[cfg(not(any(target_os = "ios", target_os = "macos")))] in show()
101 #[cfg(not(any(target_o in show()
[all...]

Completed in 7 milliseconds

12345678910>>...122