/third_party/typescript/tests/baselines/reference/ |
H A D | logicalAssignment2(target=es2015).js | 5 baz: 0 | 1 | 42 | undefined | '' 7 baz: 0 | 1 | 42 | undefined | '' 9 baz: 0 | 1 | 42 | undefined | '' 17 a.baz &&= result.baz 18 b.baz ||= result.baz 19 c.baz ??= result.baz 21 a.foo["baz"] [all...] |
H A D | logicalAssignment2(target=es2020).js | 5 baz: 0 | 1 | 42 | undefined | '' 7 baz: 0 | 1 | 42 | undefined | '' 9 baz: 0 | 1 | 42 | undefined | '' 17 a.baz &&= result.baz 18 b.baz ||= result.baz 19 c.baz ??= result.baz 21 a.foo["baz"] [all...] |
H A D | logicalAssignment3(target=es2015).js | 3 baz: 0 | 1 | 42 | undefined | '' 11 (a.baz) &&= result.baz; 12 (b.baz) ||= result.baz; 13 (c.baz) ??= result.baz; 20 a.baz && (a.baz = result.baz);
[all...] |
H A D | memberFunctionsWithPublicPrivateOverloads.js | 16 protected baz(x: string); // error 17 protected baz(x: number, y: string); // error 18 private baz(x: any, y?: any) { } 25 protected static baz(x: 'hi'); 26 public static baz(x: string); // error 27 protected static baz(x: number, y: string); 28 protected static baz(x: any, y?: any) { } 41 private baz(x: string); 42 protected baz(x: number, y: string); // error 43 private baz( [all...] |
H A D | es6ExportClauseWithAssignmentInEs5.js | 5 var baz = 3; variable 6 baz = 4; 16 export { foo, baz, baz as quux, buzz, bizz }; 22 exports.bizz = exports.buzz = exports.quux = exports.baz = exports.foo = void 0;
26 var baz = 3;
variable 27 exports.baz = baz;
28 exports.quux = baz;
29 exports.quux = exports.baz [all...] |
H A D | aliasErrors.js | 5 export module bar { export module baz {export class boo {}}} 9 import booz = foo.bar.baz; 24 beez.baz.boo; 44 var baz;
45 (function (baz) {
51 baz.boo = boo;
52 })(baz = bar.baz || (bar.baz = {}));
56 var booz = foo.bar.baz;
[all...] |
H A D | mergeThreeInterfaces.js | 14 baz: boolean; 20 var r3 = a.baz; 32 baz: T; 38 var r6 = b.baz; 51 baz: boolean; 59 var r3 = a.baz; // any, should be boolean 70 baz: T; 78 var r6 = b.baz; // any, should be boolean 86 var r3 = a.baz;
90 var r6 = b.baz;
[all...] |
H A D | tsxLibraryManagedAttributes.js | 48 baz: PropTypes.string.isRequired, 55 const a = <Component foo={12} bar="yes" baz="yeah" />; 57 const c = <Component bar="yes" baz="yeah" />; 58 const d = <Component bar="yes" baz="yo" bat="ohno" />; // Error, baz not a valid prop 59 const e = <Component foo={12} bar={null} baz="cool" />; // bar is nullable/undefinable since it's not marked `isRequired` 60 const f = <Component foo={12} bar="yeah" baz={null} />; // Error, baz is _not_ nullable/undefinable since it's marked `isRequired` 92 baz: PropTypes.number.isRequired, 98 const n = <BothWithSpecifiedGeneric foo="fine" bar="yes" baz [all...] |
H A D | genericCallWithObjectLiteralArgs.js | 2 function foo<T>(x: { bar: T; baz: T }) { 6 var r = foo({ bar: 1, baz: '' }); // error 7 var r2 = foo({ bar: 1, baz: 1 }); // T = number 8 var r3 = foo({ bar: foo, baz: foo }); // T = typeof foo 9 var r4 = foo<Object>({ bar: 1, baz: '' }); // T = Object
15 var r = foo({ bar: 1, baz: '' }); // error
16 var r2 = foo({ bar: 1, baz: 1 }); // T = number
17 var r3 = foo({ bar: foo, baz: foo }); // T = typeof foo
18 var r4 = foo({ bar: 1, baz: '' }); // T = Object
|
H A D | destructuredDeclarationEmit.js | 4 const foo = { bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } }; 11 const { bar: baz, bat, bam: { bork: { bar: ibar, baz: ibaz } } } = foo; 12 export { baz, ibaz }; 29 var foo = { bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } };
36 exports.foo2 = exports.sec = exports.bee = exports.one = exports.ibaz = exports.baz = exports.arr = exports.foo = void 0;
40 var baz = foo_1.foo.bar, bat = foo_1.foo.bat, _a = foo_1.foo.bam.bork, ibar = _a.bar, ibaz = _a.baz;
variable 41 exports.baz = baz;
[all...] |
H A D | destructuringTypeGuardFlow.js | 4 baz: string; 11 const aFoo: foo = { bar: 3, baz: "b", nested: { a: 1, b: "y" } }; 14 const { bar, baz, nested: {a, b: text} } = aFoo; 17 const another: string = baz; 30 const { bar, baz, nested: {a, b: text} } = bBar.elem2; 33 const another: string = baz; 40 var aFoo = { bar: 3, baz: "b", nested: { a: 1, b: "y" } };
42 var bar = aFoo.bar, baz = aFoo.baz, _a = aFoo.nested, a = _a.a, text = _a.b;
45 var another = baz;
[all...] |
H A D | aliasBug.js | 6 export module bar { export module baz {export class boo {}}} 10 import booz = foo.bar.baz; 33 var baz;
34 (function (baz) {
40 baz.boo = boo;
41 })(baz = bar.baz || (bar.baz = {}));
45 var booz = foo.bar.baz;
|
H A D | declarationEmitFunctionKeywordProp.js | 9 function baz() {} function 10 baz.class = true; 11 baz.normal = false;
19 function baz() { }
20 baz["class"] = true;
21 baz.normal = false;
35 declare function baz(): void;
36 declare namespace baz {
|
H A D | jsDeclarationsFunctionKeywordProp.js | 9 function baz() {} function 10 baz.class = true; 11 baz.normal = false;
19 function baz() { }
20 baz.class = true;
21 baz.normal = false;
35 declare function baz(): void;
36 declare namespace baz {
|
H A D | mismatchedClassConstructorVariable.js | 2 var baz: foo; variable 3 class baz { } 7 var baz;
variable 8 var baz = /** @class */ (function () {
9 function baz() {
11 return baz;
|
H A D | argumentExpressionContextualTyping.js | 5 function baz(x: [string, number, boolean]) { } function 14 baz(tuple); 15 baz(["string", 1, true]); 17 baz(array); // Error 18 baz(["string", 1, true, ...array]); // Error 38 function baz(x) { }
45 baz(tuple);
46 baz(["string", 1, true]);
47 baz(array); // Error
48 baz(__spreadArra [all...] |
H A D | privateNamesAndGenericClasses-2.js | 11 set baz(t: T) { 15 get baz(): T { 23 a.baz = 5 // OK 24 const x: number = a.baz // OK 51 set baz(t) {
54 get baz() {
63 a.baz = 5; // OK
64 const x = a.baz; // OK
|
H A D | controlFlowCommaExpressionAssertionMultiple.js | 10 function func2(foo: any, bar: any, baz: any) { 11 Narrow<number>(foo), Narrow<string>(bar), Narrow<boolean>(baz); 14 baz; 25 function func2(foo, bar, baz) {
26 Narrow(foo), Narrow(bar), Narrow(baz);
29 baz;
|
H A D | shorthand-property-es5-es6.js | 3 const baz = 42; 4 const bar = { foo, baz }; 9 var baz = 42;
variable 10 var bar = { foo: foo, baz: baz };
|
H A D | nodeModulesAllowJsImportHelpersCollisions3(module=node16).js | 7 export {bar as baz} from "fs";
12 export {bar as baz} from "fs";
36 exports.baz = exports.foo = exports.default = void 0;
43 Object.defineProperty(exports, "baz", { enumerable: true, get: function () { return fs_3.bar; } });
48 export { bar as baz } from "fs";
52 export { default, default as foo, bar as baz } from "fs";
54 export { default, default as foo, bar as baz } from "fs";
|
H A D | nodeModulesAllowJsImportHelpersCollisions3(module=nodenext).js | 7 export {bar as baz} from "fs";
12 export {bar as baz} from "fs";
36 exports.baz = exports.foo = exports.default = void 0;
43 Object.defineProperty(exports, "baz", { enumerable: true, get: function () { return fs_3.bar; } });
48 export { bar as baz } from "fs";
52 export { default, default as foo, bar as baz } from "fs";
54 export { default, default as foo, bar as baz } from "fs";
|
H A D | contextualSignatureInstantiation.js | 10 declare function baz<T, U>(x: T, y: T, cb: (x: T, y: T) => U): U; 17 var a = baz(1, 1, g); // Should be number 23 var b = baz(b, b, g); // Should be number | string 29 var d = baz(d, d, g); // Should be number[] | string[] 40 var a = baz(1, 1, g); // Should be number
45 var b = baz(b, b, g); // Should be number | string
50 var d = baz(d, d, g); // Should be number[] | string[]
|
H A D | primitiveMembers.js | 25 class baz { public bar(): void { }; } 26 class foo extends baz { public bar(){ return undefined}; } 66 var baz = /** @class */ (function () {
67 function baz() {
69 baz.prototype.bar = function () { };
71 return baz;
81 }(baz));
|
/third_party/PyYAML/tests/lib/ |
H A D | test_constructor.py | 101 def __init__(self, foo=1, bar=2, baz=3): 104 self.baz = baz 106 return {1: self.foo, 2: self.bar, 3: self.baz} 110 self.baz = state[3] 118 def __new__(cls, foo=None, bar=None, baz=None): 122 self.baz = baz 125 return cmp((type(self), self.foo, self.bar, self.baz), 126 (type(other), other.foo, other.bar, other.baz)) [all...] |
/third_party/json/tests/src/ |
H A D | unit-udl.cpp | 15 auto j_expected = nlohmann::json::parse(R"({"foo": "bar", "baz": 42})"); 22 CHECK(R"({"foo": "bar", "baz": 42})"_json == j_expected); 30 CHECK(R"({"foo": "bar", "baz": 42})"_json == j_expected); 38 CHECK(R"({"foo": "bar", "baz": 42})"_json == j_expected); 46 CHECK(R"({"foo": "bar", "baz": 42})"_json == j_expected); 53 CHECK(R"({"foo": "bar", "baz": 42})"_json == j_expected);
|