Home
last modified time | relevance | path

Searched refs:ctor (Results 1 – 25 of 272) sorted by relevance

1234567891011

/third_party/skia/third_party/externals/tint/src/writer/
Dappend_vector_test.cc55 auto* ctor = call->Target()->As<sem::TypeConstructor>(); in TEST_F() local
56 ASSERT_NE(ctor, nullptr); in TEST_F()
57 ASSERT_TRUE(ctor->ReturnType()->Is<sem::Vector>()); in TEST_F()
58 EXPECT_EQ(ctor->ReturnType()->As<sem::Vector>()->Width(), 3u); in TEST_F()
59 EXPECT_TRUE(ctor->ReturnType()->As<sem::Vector>()->type()->Is<sem::I32>()); in TEST_F()
60 EXPECT_EQ(ctor->ReturnType(), call->Type()); in TEST_F()
62 ASSERT_EQ(ctor->Parameters().size(), 3u); in TEST_F()
63 EXPECT_TRUE(ctor->Parameters()[0]->Type()->Is<sem::I32>()); in TEST_F()
64 EXPECT_TRUE(ctor->Parameters()[1]->Type()->Is<sem::I32>()); in TEST_F()
65 EXPECT_TRUE(ctor->Parameters()[2]->Type()->Is<sem::I32>()); in TEST_F()
[all …]
/third_party/typescript/tests/baselines/reference/
DdeclarationsIndirectGeneratedAliasReference.symbols1 === tests/cases/compiler/node_modules/mod/ctor.d.ts ===
3 >Ctor : Symbol(Ctor, Decl(ctor.d.ts, 0, 0), Decl(ctor.d.ts, 7, 12))
6 >x : Symbol(Ctor.x, Decl(ctor.d.ts, 0, 23))
9 >ExtendedCtor : Symbol(ExtendedCtor, Decl(ctor.d.ts, 2, 1))
10 >T : Symbol(T, Decl(ctor.d.ts, 3, 25))
11 >x : Symbol(x, Decl(ctor.d.ts, 3, 31))
12 >ext : Symbol(ext, Decl(ctor.d.ts, 3, 41))
13 >T : Symbol(T, Decl(ctor.d.ts, 3, 25))
16 >CtorConstructor : Symbol(CtorConstructor, Decl(ctor.d.ts, 3, 50))
19 >extends : Symbol(CtorConstructor.extends, Decl(ctor.d.ts, 4, 34))
[all …]
DgenericNewInterface.types2 function createInstance<T>(ctor: new (s: string) => T): T {
3 >createInstance : <T>(ctor: new (s: string) => T) => T
4 >ctor : new (s: string) => T
7 return new ctor(42); //should be an error
8 >new ctor(42) : T
9 >ctor : new (s: string) => T
18 function createInstance2<T>(ctor: INewable<T>): T {
19 >createInstance2 : <T>(ctor: INewable<T>) => T
20 >ctor : INewable<T>
22 return new ctor(1024); //should be an error
[all …]
DdeclarationsIndirectGeneratedAliasReference.types1 === tests/cases/compiler/node_modules/mod/ctor.d.ts ===
20 import { Ctor } from "./ctor";
21 >Ctor : import("tests/cases/compiler/node_modules/mod/ctor").CtorConstructor
31 >Ctor : import("tests/cases/compiler/node_modules/mod/ctor").CtorConstructor
32 >ns.default : import("tests/cases/compiler/node_modules/mod/ctor").CtorConstructor
34 >default : import("tests/cases/compiler/node_modules/mod/ctor").CtorConstructor
37 …t("tests/cases/compiler/node_modules/mod/ctor").ExtendedCtor<import("tests/cases/compiler/node_mod…
38 …t("tests/cases/compiler/node_modules/mod/ctor").ExtendedCtor<import("tests/cases/compiler/node_mod…
39 …ases/compiler/node_modules/mod/ctor").ExtendedCtor<T extends unknown ? import("tests/cases/compile…
40 >Ctor : import("tests/cases/compiler/node_modules/mod/ctor").CtorConstructor
[all …]
DgenericNewInterface.symbols2 function createInstance<T>(ctor: new (s: string) => T): T {
5 >ctor : Symbol(ctor, Decl(genericNewInterface.ts, 0, 27))
10 return new ctor(42); //should be an error
11 >ctor : Symbol(ctor, Decl(genericNewInterface.ts, 0, 27))
23 function createInstance2<T>(ctor: INewable<T>): T {
26 >ctor : Symbol(ctor, Decl(genericNewInterface.ts, 8, 28))
31 return new ctor(1024); //should be an error
32 >ctor : Symbol(ctor, Decl(genericNewInterface.ts, 8, 28))
DgenericNewInterface.js2 function createInstance<T>(ctor: new (s: string) => T): T {
3 return new ctor(42); //should be an error
10 function createInstance2<T>(ctor: INewable<T>): T {
11 return new ctor(1024); //should be an error
15 function createInstance(ctor) {
16 return new ctor(42); //should be an error
18 function createInstance2(ctor) {
19 return new ctor(1024); //should be an error
DmoduleExportsElementAccessAssignment2.types11 * @param {*} ctor
14 function f(type, ctor, exports) {
15 >f : (type: any, ctor: any, exports: any) => void
17 >ctor : any
26 exports["AST_" + type] = ctor;
27 >exports["AST_" + type] = ctor : any
33 >ctor : any
DmoduleExportsElementAccessAssignment2.symbols9 * @param {*} ctor
12 function f(type, ctor, exports) {
15 >ctor : Symbol(ctor, Decl(file1.js, 8, 16))
21 exports["AST_" + type] = ctor;
24 >ctor : Symbol(ctor, Decl(file1.js, 8, 16))
DunionSignaturesWithThisParameter.types4 function x<T>(ctor: {
5 >x : <T>(ctor: { (this: {}, v: T): void; new (v: T): void; } | { (v: T): void; new (v: T): void; },…
6 >ctor : { (this: {}, v: T): void; new (v: T): void; } | { (v: T): void; new (v: T): void; }
25 new ctor(t);
26 >new ctor(t) : void
27 >ctor : { (this: {}, v: T): void; new (v: T): void; } | { (v: T): void; new (v: T): void; }
DdeclarationEmitPrivateNameCausesError.types8 export function ignoreExtraVariables<CtorT extends {new(...args:any[]):{}}> (ctor : CtorT) {
9 >ignoreExtraVariables : <CtorT extends new (...args: any[]) => {}>(ctor: CtorT) => { new (...args: …
11 >ctor : CtorT
13 return class extends ctor {
14 >class extends ctor { [IGNORE_EXTRA_VARIABLES] = true; //An unexported constant is used }…
15 >ctor : {}
DdeclarationEmitPrivateNameCausesError.symbols7 export function ignoreExtraVariables<CtorT extends {new(...args:any[]):{}}> (ctor : CtorT) {
11 >ctor : Symbol(ctor, Decl(file.ts, 3, 77))
14 return class extends ctor {
15 >ctor : Symbol(ctor, Decl(file.ts, 3, 77))
DunionSignaturesWithThisParameter.symbols4 function x<T>(ctor: {
7 >ctor : Symbol(ctor, Decl(unionSignaturesWithThisParameter.ts, 2, 14))
31 new ctor(t);
32 >ctor : Symbol(ctor, Decl(unionSignaturesWithThisParameter.ts, 2, 14))
DunionSignaturesWithThisParameter.js4 function x<T>(ctor: {
11 new ctor(t);
18 function x(ctor, t) { argument
19 new ctor(t);
DerrorsWithInvokablesInUnions01.errors.txt5 tests/cases/compiler/errorsWithInvokablesInUnions01.ts(16,12): error TS2322: Type 'typeof ctor' is …
6 Type 'typeof ctor' is not assignable to type 'ConstructableA'.
7 Property 'somePropA' is missing in type 'ctor' but required in type '{ somePropA: any; }'.
31 export let ctor: IDirectiveLinkFn<number> | ConstructableA | IDirectivePrePost<number> = class {
33 !!! error TS2322: Type 'typeof ctor' is not assignable to type 'ConstructableA | IDirectiveLinkFn<n…
34 !!! error TS2322: Type 'typeof ctor' is not assignable to type 'ConstructableA'.
35 !!! error TS2322: Property 'somePropA' is missing in type 'ctor' but required in type '{ somePr…
DdeclarationEmitPrivateNameCausesError.js5 export function ignoreExtraVariables<CtorT extends {new(...args:any[]):{}}> (ctor : CtorT) {
6 return class extends ctor {
32 function ignoreExtraVariables(ctor) { argument
42 }(ctor)),
53 }>(ctor: CtorT): {
/third_party/node/deps/npm/node_modules/inherits/
Dinherits_browser.js3 module.exports = function inherits(ctor, superCtor) { argument
5 ctor.super_ = superCtor
6 ctor.prototype = Object.create(superCtor.prototype, { class
8 value: ctor,
18 module.exports = function inherits(ctor, superCtor) {
20 ctor.super_ = superCtor
23 ctor.prototype = new TempCtor()
24 ctor.prototype.constructor = ctor
/third_party/skia/third_party/externals/tint/src/resolver/
Dtype_constructor_validation_test.cc328 auto* ctor = call->Target()->As<sem::TypeConstructor>(); in TEST_P() local
329 ASSERT_NE(ctor, nullptr); in TEST_P()
330 EXPECT_EQ(call->Type(), ctor->ReturnType()); in TEST_P()
331 ASSERT_EQ(ctor->Parameters().size(), 1u); in TEST_P()
332 EXPECT_EQ(ctor->Parameters()[0]->Type(), TypeOf(arg)); in TEST_P()
456 auto* ctor = call->Target()->As<sem::TypeConstructor>(); in TEST_F() local
457 ASSERT_NE(ctor, nullptr); in TEST_F()
458 EXPECT_EQ(call->Type(), ctor->ReturnType()); in TEST_F()
459 ASSERT_EQ(ctor->Parameters().size(), 0u); in TEST_F()
473 auto* ctor = call->Target()->As<sem::TypeConstructor>(); in TEST_F() local
[all …]
/third_party/boost/libs/compute/include/boost/compute/detail/
Dglobal_static.hpp19 # define BOOST_COMPUTE_DETAIL_GLOBAL_STATIC(type, name, ctor) \ argument
20 thread_local type name ctor;
24 # define BOOST_COMPUTE_DETAIL_GLOBAL_STATIC(type, name, ctor) \ argument
27 BOOST_PP_CAT(name, _tls_ptr_).reset(new type ctor); \
33 # define BOOST_COMPUTE_DETAIL_GLOBAL_STATIC(type, name, ctor) \ argument
34 static type name ctor;
/third_party/boost/boost/compute/detail/
Dglobal_static.hpp19 # define BOOST_COMPUTE_DETAIL_GLOBAL_STATIC(type, name, ctor) \ argument
20 thread_local type name ctor;
24 # define BOOST_COMPUTE_DETAIL_GLOBAL_STATIC(type, name, ctor) \ argument
27 BOOST_PP_CAT(name, _tls_ptr_).reset(new type ctor); \
33 # define BOOST_COMPUTE_DETAIL_GLOBAL_STATIC(type, name, ctor) \ argument
34 static type name ctor;
/third_party/node/lib/internal/process/
Dwarning.js111 function emitWarning(warning, type, code, ctor) { argument
114 ctor = type.ctor;
120 ctor = type;
127 ctor = code;
133 warning = createWarningObject(warning, type, code, ctor, detail);
150 function createWarningObject(warning, type, code, ctor, detail) { argument
162 ErrorCaptureStackTrace(warning, ctor || process.emitWarning);
/third_party/typescript/tests/cases/compiler/
DgenericNewInterface.ts1 function createInstance<T>(ctor: new (s: string) => T): T {
2 return new ctor(42); //should be an error
9 function createInstance2<T>(ctor: INewable<T>): T {
10 return new ctor(1024); //should be an error
/third_party/skia/src/sksl/ir/
DSkSLPrefixExpression.cpp51 const ConstructorArray& ctor = value->as<ConstructorArray>(); in simplify_negation() local
52 return ConstructorArray::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
53 negate_operands(context, ctor.arguments())); in simplify_negation()
60 const ConstructorDiagonalMatrix& ctor = value->as<ConstructorDiagonalMatrix>(); in simplify_negation() local
62 *ctor.argument())) { in simplify_negation()
63 return ConstructorDiagonalMatrix::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
72 const ConstructorSplat& ctor = value->as<ConstructorSplat>(); in simplify_negation() local
74 *ctor.argument())) { in simplify_negation()
75 return ConstructorSplat::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
84 const ConstructorCompound& ctor = value->as<ConstructorCompound>(); in simplify_negation() local
[all …]
/third_party/protobuf/js/
Ddebug.js106 var ctor = message.constructor;
107 var messageName = ctor.name || ctor.displayName;
111 for (var name in ctor.prototype) {
129 for (var id in ctor['extensions']) {
131 var ext = ctor['extensions'][id];
/third_party/node/lib/internal/
Dfreelist.js8 constructor(name, max, ctor) { argument
10 this.ctor = ctor;
18 ReflectApply(this.ctor, this, arguments);
/third_party/node/test/parallel/
Dtest-worker-sharedarraybuffer-from-worker-thread.js11 for (const ctor of ['ArrayBuffer', 'SharedArrayBuffer']) {
14 const arrayBuffer = new ${ctor}(4);
17 '${ctor}' === 'SharedArrayBuffer' ? [] : [arrayBuffer]);
23 assert.strictEqual(arrayBuffer.constructor.name, ctor);

1234567891011