/third_party/skia/third_party/externals/tint/src/writer/ |
D | append_vector_test.cc | 55 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/ |
D | declarationsIndirectGeneratedAliasReference.symbols | 1 === 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 …]
|
D | genericNewInterface.types | 2 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 …]
|
D | declarationsIndirectGeneratedAliasReference.types | 1 === 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 …]
|
D | genericNewInterface.symbols | 2 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))
|
D | genericNewInterface.js | 2 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
|
D | moduleExportsElementAccessAssignment2.types | 11 * @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
|
D | moduleExportsElementAccessAssignment2.symbols | 9 * @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))
|
D | unionSignaturesWithThisParameter.types | 4 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; }
|
D | declarationEmitPrivateNameCausesError.types | 8 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 : {}
|
D | declarationEmitPrivateNameCausesError.symbols | 7 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))
|
D | unionSignaturesWithThisParameter.symbols | 4 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))
|
D | unionSignaturesWithThisParameter.js | 4 function x<T>(ctor: { 11 new ctor(t); 18 function x(ctor, t) { argument 19 new ctor(t);
|
D | errorsWithInvokablesInUnions01.errors.txt | 5 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…
|
D | declarationEmitPrivateNameCausesError.js | 5 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/ |
D | inherits_browser.js | 3 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/ |
D | type_constructor_validation_test.cc | 328 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/ |
D | global_static.hpp | 19 # 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/ |
D | global_static.hpp | 19 # 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/ |
D | warning.js | 111 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/ |
D | genericNewInterface.ts | 1 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/ |
D | SkSLPrefixExpression.cpp | 51 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/ |
D | debug.js | 106 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/ |
D | freelist.js | 8 constructor(name, max, ctor) { argument 10 this.ctor = ctor; 18 ReflectApply(this.ctor, this, arguments);
|
/third_party/node/test/parallel/ |
D | test-worker-sharedarraybuffer-from-worker-thread.js | 11 for (const ctor of ['ArrayBuffer', 'SharedArrayBuffer']) { 14 const arrayBuffer = new ${ctor}(4); 17 '${ctor}' === 'SharedArrayBuffer' ? [] : [arrayBuffer]); 23 assert.strictEqual(arrayBuffer.constructor.name, ctor);
|