/third_party/typescript/tests/baselines/reference/ |
D | emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.types | 7 >foo : () => { prop: number; } 14 return { prop: 2 }; 15 >{ prop: 2 } : { prop: number; } 16 >prop : number 19 foo().prop **= 2; 20 >foo().prop **= 2 : number 21 >foo().prop : number 22 >foo() : { prop: number; } 23 >foo : () => { prop: number; } 24 >prop : number [all …]
|
D | emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.symbols | 11 return { prop: 2 }; 12 >prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12… 14 foo().prop **= 2; 15 >foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts,… 17 >prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12… 19 var result0 = foo().prop **= 2; 21 >foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts,… 23 >prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts, 3, 12… 25 foo().prop **= foo().prop **= 2; 26 >foo().prop : Symbol(prop, Decl(emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts,… [all …]
|
D | declarationEmitDuplicateParameterDestructuring.types | 2 export const fn1 = ({ prop: a, prop: b }: { prop: number }) => a + b; 3 >fn1 : ({ prop: a, prop: b }: { prop: number;}) => number 4 >({ prop: a, prop: b }: { prop: number }) => a + b : ({ prop: a, prop: b }: { prop: number;}) =>… 5 >prop : any 7 >prop : any 9 >prop : number 14 export const fn2 = ({ prop: a }: { prop: number }, { prop: b }: { prop: number }) => a + b; 15 >fn2 : ({ prop: a }: { prop: number;}, { prop: b }: { prop: number;}) => number 16 >({ prop: a }: { prop: number }, { prop: b }: { prop: number }) => a + b : ({ prop: a }: { prop:… 17 >prop : any [all …]
|
D | narrowingTypeofUndefined.types | 2 declare const a: { error: { prop: string }, result: undefined } | { error: undefined, result: { pro… 3 >a : { error: { prop: string;}; result: undefined; } | { error: undefined; result: { prop: nu… 4 >error : { prop: string; } 5 >prop : string 8 >result : { prop: number; } 9 >prop : number 14 >a.error : { prop: string; } 15 >a : { error: { prop: string; }; result: undefined; } | { error: undefined; result: { prop: number;… 16 >error : { prop: string; } 19 a.result.prop; // number [all …]
|
D | classStaticBlock27.types | 5 …prop = 1 static { console.log(Foo.prop); Foo.prop++; } static { cons… 6 …prop = 1 static { console.log(Foo.prop); Foo.prop++; } static { cons… 9 static prop = 1 10 >prop : number 14 console.log(Foo.prop); 15 >console.log(Foo.prop) : void 19 >Foo.prop : number 21 >prop : number 23 Foo.prop++; 24 >Foo.prop++ : number [all …]
|
D | contextualTypeWithUnionTypeObjectLiteral.types | 14 var objStr: { prop: string }; 15 >objStr : { prop: string; } 16 >prop : string 18 var objNum: { prop: number }; 19 >objNum : { prop: number; } 20 >prop : number 22 var objStrOrNum1: { prop: string } | { prop: number } = objStr || objNum; 23 >objStrOrNum1 : { prop: string; } | { prop: number; } 24 >prop : string 25 >prop : number [all …]
|
D | emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.js | 5 return { prop: 2 }; 7 foo().prop **= 2; 8 var result0 = foo().prop **= 2; 9 foo().prop **= foo().prop **= 2; 10 var result1 = foo().prop **= foo().prop **= 2; 11 foo().prop **= foo().prop ** 2; 12 var result2 = foo().prop **= foo().prop ** 2; 19 return { prop: 2 }; 21 (_a = foo()).prop = Math.pow(_a.prop, 2); 22 var result0 = (_b = foo()).prop = Math.pow(_b.prop, 2); [all …]
|
D | mappedTypeUnionConstraintInferences.types | 9 …thing_Actual : <T extends { prop: string; }>(a: T) => { [P in keyof PartialProperties<T, "prop">]:… 11 prop: string; 12 >prop : string 17 …const x: { [P in keyof PartialProperties<T, "prop">]: PartialProperties<T, "prop">[P]; } = null as… 18 >x : { [P in keyof PartialProperties<T, "prop">]: PartialProperties<T, "prop">[P]; } 23 >x : { [P in keyof PartialProperties<T, "prop">]: PartialProperties<T, "prop">[P]; } 26 …ing_Expected : <T extends { prop: string; }>(a: T) => { [P in keyof PartialProperties<T, "prop">]:… 28 prop: string; 29 >prop : string 31 }>(a: T): { [P in keyof PartialProperties<T, "prop">]: PartialProperties<T, "prop">[P]; }; [all …]
|
D | controlFlowElementAccess2.types | 3 >config : { [key: string]: boolean | { prop: string; }; } 5 [key: string]: boolean | { prop: string }; 7 >prop : string 14 >config['works'] : boolean | { prop: string; } 15 >config : { [key: string]: boolean | { prop: string; }; } 19 config.works.prop = 'test'; // ok 20 >config.works.prop = 'test' : "test" 21 >config.works.prop : string 22 >config.works : { prop: string; } 23 >config : { [key: string]: boolean | { prop: string; }; } [all …]
|
D | abstractPropertyInConstructor.types | 18 let val = this.prop.toLowerCase(); 20 >this.prop.toLowerCase() : string 21 >this.prop.toLowerCase : () => string 22 >this.prop : string 24 >prop : string 31 this.prop = "Hello World"; 32 >this.prop = "Hello World" : "Hello World" 33 >this.prop : string 35 >prop : string 48 >() => { return this.prop; } : () => string [all …]
|
D | contextualTypeWithUnionTypeObjectLiteral.errors.txt | 1 …eral.ts(14,5): error TS2322: Type '{ prop: string | number; }' is not assignable to type '{ prop: … 2 Type '{ prop: string | number; }' is not assignable to type '{ prop: number; }'. 3 Types of property 'prop' are incompatible. 6 …0,5): error TS2322: Type '{ prop: string | number; }' is not assignable to type '{ prop: string; a… 7 Type '{ prop: string | number; }' is not assignable to type '{ prop: number; }'. 8 Types of property 'prop' are incompatible. 11 …or TS2322: Type '{ prop: string | number; anotherP: string; }' is not assignable to type '{ prop: … 12 …Type '{ prop: string | number; anotherP: string; }' is not assignable to type '{ prop: string; ano… 13 Types of property 'prop' are incompatible. 16 …or TS2322: Type '{ prop: string | number; anotherP: string; }' is not assignable to type '{ prop: … [all …]
|
D | getSetEnumerable.types | 5 get prop() { return true;} 6 >prop : boolean 13 set prop(value: boolean) { } 14 >prop : boolean 21 get prop() { return true;} 22 >prop : boolean 25 set prop(value: boolean) { } 26 >prop : boolean 31 >GetSetEnumerableObjectGet : { readonly prop: boolean; } 32 >{ get prop() { return true; }} : { readonly prop: boolean; } [all …]
|
D | derivedClassSuperProperties.types | 20 prop = true; 21 >prop : boolean 41 prop = true; 42 >prop : boolean 63 prop = true; 64 >prop : boolean 85 prop = true; 86 >prop : boolean 108 prop = true; 109 >prop : boolean [all …]
|
D | classStaticBlock27.symbols | 7 static prop = 1 8 >prop : Symbol(Foo.prop, Decl(classStaticBlock27.ts, 2, 16)) 11 console.log(Foo.prop); 15 >Foo.prop : Symbol(Foo.prop, Decl(classStaticBlock27.ts, 2, 16)) 17 >prop : Symbol(Foo.prop, Decl(classStaticBlock27.ts, 2, 16)) 19 Foo.prop++; 20 >Foo.prop : Symbol(Foo.prop, Decl(classStaticBlock27.ts, 2, 16)) 22 >prop : Symbol(Foo.prop, Decl(classStaticBlock27.ts, 2, 16)) 25 console.log(Foo.prop); 29 >Foo.prop : Symbol(Foo.prop, Decl(classStaticBlock27.ts, 2, 16)) [all …]
|
D | derivedClassSuperProperties.js | 11 prop = true; field in Derived1 19 prop = true; field in Derived2 27 prop = true; field in Derived3 35 prop = true; field in Derived4 43 prop = true; field in Derived5 51 prop = true; field in Derived6 59 prop = true; field in Derived7 67 prop = true; field in Derived8 75 prop = true; field in DerivedWithArrowFunction 83 prop = true; field in DerivedWithArrowFunctionParameter [all …]
|
D | tsxStatelessFunctionComponentsWithTypeArguments5.types | 10 function createComponent<T extends { prop: number }>(arg: T) { 11 >createComponent : <T extends { prop: number; }>(arg: T) => void 12 >prop : number 29 declare function ComponentSpecific<U>(l: { prop: U }): JSX.Element; 30 >ComponentSpecific : <U>(l: { prop: U;}) => JSX.Element 31 >l : { prop: U; } 32 >prop : U 35 declare function ComponentSpecific1<U>(l: { prop: U, "ignore-prop": number }): JSX.Element; 36 >ComponentSpecific1 : <U>(l: { prop: U; "ignore-prop": number;}) => JSX.Element 37 >l : { prop: U; "ignore-prop": number; } [all …]
|
D | privateNameWhenNotUseDefineForClassFieldsInEsNext(target=esnext).js | 3 #prop = 0 field in TestWithStatics 4 static dd = new TestWithStatics().#prop; // OK 8 new TestWithStatics().#prop // OK 12 new TestWithStatics().#prop // OK 20 new TestWithStatics().#prop // OK 29 #prop = 0 field in TestNonStatics 30 dd = new TestNonStatics().#prop; // OK 34 new TestNonStatics().#prop // Ok 38 new TestNonStatics().#prop // Ok 46 new TestNonStatics().#prop // OK [all …]
|
D | contextualTypeWithUnionTypeObjectLiteral.js | 5 var objStr: { prop: string }; 6 var objNum: { prop: number }; 7 var objStrOrNum1: { prop: string } | { prop: number } = objStr || objNum; 8 var objStrOrNum2: { prop: string | number } = objStr || objNum; 15 var objStrOrNum3: { prop: string } | { prop: number } = { 16 prop: strOrNumber property 18 var objStrOrNum4: { prop: string | number } = { 19 prop: strOrNumber property 21 var objStrOrNum5: { prop: string; anotherP: string; } | { prop: number } = { prop: strOrNumber }; property 22 var objStrOrNum6: { prop: string; anotherP: string; } | { prop: number } = { [all …]
|
D | unionTypeWithRecursiveSubtypeReduction3.types | 2 var a27: { prop: number } | { prop: T27 }; 3 >a27 : { prop: number; } | { prop: T27; } 4 >prop : number 5 >prop : { prop: number; } | { prop: T27; } 8 >T27 : { prop: number; } | { prop: { prop: number; } | any; } 9 >a27 : { prop: number; } | { prop: { prop: number; } | any; } 12 >b : { prop: number; } | { prop: { prop: number; } | any; } 16 >b : { prop: number; } | { prop: { prop: number; } | any; }
|
/third_party/skia/modules/skottie/tests/ |
D | Keyframe.cpp | 48 MockProperty<ScalarValue> prop(R"({})"); in DEF_TEST() local 49 REPORTER_ASSERT(reporter, !prop); in DEF_TEST() 52 MockProperty<ScalarValue> prop(R"({ "a": 1, "k": [] })"); in DEF_TEST() local 53 REPORTER_ASSERT(reporter, !prop); in DEF_TEST() 57 MockProperty<ScalarValue> prop(R"({ in DEF_TEST() local 65 REPORTER_ASSERT(reporter, prop); in DEF_TEST() 66 REPORTER_ASSERT(reporter, !prop.isStatic()); in DEF_TEST() 67 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( -1), 1)); in DEF_TEST() 68 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( 0), 1)); in DEF_TEST() 69 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop( 1), 1)); in DEF_TEST() [all …]
|
/third_party/typescript/tests/cases/conformance/classes/constructorDeclarations/superCalls/ |
D | derivedClassSuperProperties.ts | 13 prop = true; property in Derived1 21 prop = true; property in Derived2 29 prop = true; property in Derived3 37 prop = true; property in Derived4 45 prop = true; property in Derived5 53 prop = true; property in Derived6 61 prop = true; property in Derived7 69 prop = true; property in Derived8 77 prop = true; property in DerivedWithArrowFunction 85 prop = true; property in DerivedWithArrowFunctionParameter [all …]
|
/third_party/libinput/src/ |
D | util-prop-parsers.c | 52 parse_mouse_dpi_property(const char *prop) in parse_mouse_dpi_property() argument 57 if (!prop) in parse_mouse_dpi_property() 60 while (*prop != 0) { in parse_mouse_dpi_property() 61 if (*prop == ' ') { in parse_mouse_dpi_property() 62 prop++; in parse_mouse_dpi_property() 65 if (*prop == '*') { in parse_mouse_dpi_property() 66 prop++; in parse_mouse_dpi_property() 68 if (!isdigit(prop[0])) in parse_mouse_dpi_property() 78 sscanf(prop, "%d@%d%n", &dpi, &rate, &nread); in parse_mouse_dpi_property() 80 sscanf(prop, "%d%n", &dpi, &nread); in parse_mouse_dpi_property() [all …]
|
/third_party/toybox/kconfig/ |
D | symbol.c | 40 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default() local 42 prop->expr = expr_alloc_symbol(sym_lookup(def, 1)); in sym_add_default() 116 struct property *prop; in sym_get_choice_prop() local 118 for_all_choices(sym, prop) in sym_get_choice_prop() 119 return prop; in sym_get_choice_prop() 125 struct property *prop; in sym_get_default_prop() local 127 for_all_defaults(sym, prop) { in sym_get_default_prop() 128 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop() 129 if (prop->visible.tri != no) in sym_get_default_prop() 130 return prop; in sym_get_default_prop() [all …]
|
/third_party/pulseaudio/src/pulse/ |
D | proplist.c | 57 static void property_free(struct property *prop) { in property_free() argument 58 pa_assert(prop); in property_free() 60 pa_xfree(prop->key); in property_free() 61 pa_xfree(prop->value); in property_free() 62 pa_xfree(prop); in property_free() 77 struct property *prop; in pa_proplist_sets() local 87 if (!(prop = pa_hashmap_get(MAKE_HASHMAP_CONST(p), key))) { in pa_proplist_sets() 88 prop = pa_xnew(struct property, 1); in pa_proplist_sets() 89 prop->key = pa_xstrdup(key); in pa_proplist_sets() 92 pa_xfree(prop->value); in pa_proplist_sets() [all …]
|
/third_party/typescript/tests/cases/conformance/types/union/ |
D | contextualTypeWithUnionTypeObjectLiteral.ts | 4 var objStr: { prop: string }; 5 var objNum: { prop: number }; 6 var objStrOrNum1: { prop: string } | { prop: number } = objStr || objNum; 7 var objStrOrNum2: { prop: string | number } = objStr || objNum; 14 var objStrOrNum3: { prop: string } | { prop: number } = { 15 prop: strOrNumber 17 var objStrOrNum4: { prop: string | number } = { 18 prop: strOrNumber 20 var objStrOrNum5: { prop: string; anotherP: string; } | { prop: number } = { prop: strOrNumber }; 21 var objStrOrNum6: { prop: string; anotherP: string; } | { prop: number } = { [all …]
|