/third_party/typescript/tests/baselines/reference/ |
D | missingSelf.symbols | 5 public a() { this.onClick(); } 7 >this.onClick : Symbol(CalcButton.onClick, Decl(missingSelf.ts, 2, 34)) 9 >onClick : Symbol(CalcButton.onClick, Decl(missingSelf.ts, 2, 34)) 11 public onClick() { } 12 >onClick : Symbol(CalcButton.onClick, Decl(missingSelf.ts, 2, 34)) 18 public b() { () => this.onClick(); } 20 >this.onClick : Symbol(CalcButton2.onClick, Decl(missingSelf.ts, 8, 40)) 22 >onClick : Symbol(CalcButton2.onClick, Decl(missingSelf.ts, 8, 40)) 24 public onClick() { } 25 >onClick : Symbol(CalcButton2.onClick, Decl(missingSelf.ts, 8, 40))
|
D | missingSelf.types | 5 public a() { this.onClick(); } 7 >this.onClick() : void 8 >this.onClick : () => void 10 >onClick : () => void 12 public onClick() { } 13 >onClick : () => void 19 public b() { () => this.onClick(); } 21 >() => this.onClick() : () => void 22 >this.onClick() : void 23 >this.onClick : () => void [all …]
|
D | tsxStatelessFunctionComponentOverload5.types | 14 onClick: React.MouseEventHandler<any>; 15 >onClick : React.MouseEventHandler<any> 53 >obj2 : { onClick: () => void; } 54 >{ onClick: ()=>{}} : { onClick: () => void; } 56 onClick: ()=>{} 57 >onClick : () => void 111 const b0 = <MainButton to='/some/path' onClick={(e)=>{}}>GO</MainButton>; // extra property; 113 ><MainButton to='/some/path' onClick={(e)=>{}}>GO</MainButton> : JSX.Element 116 >onClick : (e: React.MouseEvent<any>) => void 121 const b1 = <MainButton onClick={(e: any)=> {}} {...obj0}>Hello world</MainButton>; // extra proper… [all …]
|
D | tsxStatelessFunctionComponentOverload5.js | 10 onClick: React.MouseEventHandler<any>; 31 onClick: ()=>{} method 49 const b0 = <MainButton to='/some/path' onClick={(e)=>{}}>GO</MainButton>; // extra property; 50 const b1 = <MainButton onClick={(e: any)=> {}} {...obj0}>Hello world</MainButton>; // extra proper… 52 const b3 = <MainButton {...{to: "10000"}} {...{onClick: (k) => {}}} />; // extra property 54 const b5 = <MainButton {...{ onClick(e: any) { } }} {...obj0} />; // Spread retain method declarat… 55 const b6 = <MainButton {...{ onClick(e: any){} }} children={10} />; // incorrect type for optional… 56 const b7 = <MainButton {...{ onClick(e: any){} }} children="hello" className />; // incorrect type… 72 onClick: function () { } method 84 …var b0 = <MainButton to='/some/path' onClick={function (e) { }}>GO</MainButton>; // extra property; [all …]
|
D | missingSelf.js | 4 public a() { this.onClick(); } 5 public onClick() { } method in CalcButton 10 public b() { () => this.onClick(); } 11 public onClick() { } method in CalcButton2 25 CalcButton.prototype.a = function () { this.onClick(); }; 26 CalcButton.prototype.onClick = function () { }; method in CalcButton 34 (function () { return _this.onClick(); }); 36 CalcButton2.prototype.onClick = function () { }; method in CalcButton2
|
D | tsxStatelessFunctionComponentOverload6.js | 10 onClick: React.MouseEventHandler<any>; 27 onClick: () => {} method 44 const b1 = <MainButton onClick={(e) => {}}>Hello world</MainButton>; 50 const b7 = <MainButton {...{onClick: () => { console.log("hi") }}} />; 51 const b8 = <MainButton {...{onClick() {}}} />; // OK; method declaration get retained (See GitHub … 54 const b11 = <MainButton onClick={(e) => {}} className="hello" data-format>Hello world</MainButton>; 71 onClick: function () { } method 83 var b1 = <MainButton onClick={function (e) { }}>Hello world</MainButton>; 89 var b7 = <MainButton {...{ onClick: function () { console.log("hi"); } }}/>; 90 …var b8 = <MainButton {...{ onClick: function () { } }}/>; // OK; method declaration get retained (… [all …]
|
D | tsxStatelessFunctionComponentOverload6.types | 14 onClick: React.MouseEventHandler<any>; 15 >onClick : React.MouseEventHandler<any> 45 >obj2 : { onClick: () => void; } 46 >{ onClick: () => {}} : { onClick: () => void; } 48 onClick: () => {} 49 >onClick : () => void 107 const b1 = <MainButton onClick={(e) => {}}>Hello world</MainButton>; 109 ><MainButton onClick={(e) => {}}>Hello world</MainButton> : JSX.Element 111 >onClick : (e: React.MouseEvent<any>) => void 148 >obj2 : { onClick: () => void; } [all …]
|
D | tsxStatelessFunctionComponentOverload5.symbols | 19 onClick: React.MouseEventHandler<any>; 20 >onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) 62 onClick: ()=>{} 63 >onClick : Symbol(onClick, Decl(file.tsx, 28, 12)) 118 const b0 = <MainButton to='/some/path' onClick={(e)=>{}}>GO</MainButton>; // extra property; 122 >onClick : Symbol(onClick, Decl(file.tsx, 47, 38)) 126 const b1 = <MainButton onClick={(e: any)=> {}} {...obj0}>Hello world</MainButton>; // extra proper… 129 >onClick : Symbol(onClick, Decl(file.tsx, 48, 22)) 140 const b3 = <MainButton {...{to: "10000"}} {...{onClick: (k) => {}}} />; // extra property 144 >onClick : Symbol(onClick, Decl(file.tsx, 50, 47)) [all …]
|
D | contextuallyTypedStringLiteralsInJsxAttributes02.types | 14 onClick: (k: "left" | "right") => void; 15 >onClick : (k: "left" | "right") => void 65 const b0 = <MainButton {...{onClick: (k) => {console.log(k)}}} extra />; // k has type "left" | "r… 67 ><MainButton {...{onClick: (k) => {console.log(k)}}} extra /> : JSX.Element 69 >{onClick: (k) => {console.log(k)}} : { onClick: (k: "left" | "right") => void; } 70 >onClick : (k: "left" | "right") => void 80 const b2 = <MainButton onClick={(k)=>{console.log(k)}} extra />; // k has type "left" | "right" 82 ><MainButton onClick={(k)=>{console.log(k)}} extra /> : JSX.Element 84 >onClick : (k: "left" | "right") => void 116 const c1 = <NoOverload {...{onClick: (k) => {console.log(k)}}} extra />; // k has type any [all …]
|
D | contextuallyTypedStringLiteralsInJsxAttributes02.js | 10 onClick: (k: "left" | "right") => void; 28 const b0 = <MainButton {...{onClick: (k) => {console.log(k)}}} extra />; // k has type "left" | "r… 29 const b2 = <MainButton onClick={(k)=>{console.log(k)}} extra />; // k has type "left" | "right" 34 const c1 = <NoOverload {...{onClick: (k) => {console.log(k)}}} extra />; // k has type any 53 …var b0 = <MainButton {...{ onClick: function (k) { console.log(k); } }} extra/>; // k has type "le… 54 …var b2 = <MainButton onClick={function (k) { console.log(k); }} extra/>; // k has type "left" | "r… 59 … var c1 = <NoOverload {...{ onClick: function (k) { console.log(k); } }} extra/>; // k has type any
|
D | tsxStatelessFunctionComponentOverload5.errors.txt | 3 …Type '{ children: string; to: string; onClick: (e: MouseEvent<any>) => void; }' is not assignable … 6 …Type '{ children: string; to: string; onClick: (e: MouseEvent<any>) => void; }' is not assignable … 7 Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. 9 …Type '{ children: string; to: string; onClick: (e: MouseEvent<any>) => void; }' is not assignable … 27 …Property 'onClick' is missing in type '{ "data-format": true; }' but required in type 'ButtonProps… 43 onClick: React.MouseEventHandler<any>; 64 onClick: ()=>{} 82 const b0 = <MainButton to='/some/path' onClick={(e)=>{}}>GO</MainButton>; // extra property; 86 !!! error TS2769: Type '{ children: string; to: string; onClick: (e: MouseEvent<any>) => void; … 89 !!! error TS2769: Type '{ children: string; to: string; onClick: (e: MouseEvent<any>) => void; … [all …]
|
D | tsxStatelessFunctionComponentOverload6.symbols | 19 onClick: React.MouseEventHandler<any>; 20 >onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) 56 onClick: () => {} 57 >onClick : Symbol(onClick, Decl(file.tsx, 24, 12)) 115 const b1 = <MainButton onClick={(e) => {}}>Hello world</MainButton>; 118 >onClick : Symbol(onClick, Decl(file.tsx, 42, 22)) 149 const b7 = <MainButton {...{onClick: () => { console.log("hi") }}} />; 152 >onClick : Symbol(onClick, Decl(file.tsx, 48, 28)) 157 const b8 = <MainButton {...{onClick() {}}} />; // OK; method declaration get retained (See GitHub … 160 >onClick : Symbol(onClick, Decl(file.tsx, 49, 28)) [all …]
|
D | contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt | 3 …Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'Intrins… 6 …Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'Intrins… 10 …Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'Intrins… 13 …Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'Intrins… 14 Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. 29 …lTypes/jsxAttributes/file.tsx(33,65): error TS2322: Type '{ extra: true; onClick: (k: "left" | "ri… 44 onClick: (k: "left" | "right") => void; 62 …const b0 = <MainButton {...{onClick: (k) => {console.log(k)}}} extra />; // k has type "left" | "… 66 !!! error TS2769: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assign… 69 !!! error TS2769: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assign… [all …]
|
D | tsxSpreadDoesNotReportExcessProps.types | 7 class MyComponent extends React.Component<{dataSource: number[], onClick?: any}, {}> { 9 >React.Component : React.Component<{ dataSource: number[]; onClick?: any; }, {}, any> 13 >onClick : any 22 >this.props : Readonly<{ children?: React.ReactNode; }> & Readonly<{ dataSource: number[]; onClick?… 24 >props : Readonly<{ children?: React.ReactNode; }> & Readonly<{ dataSource: number[]; onClick?: any…
|
D | contextuallyTypedStringLiteralsInJsxAttributes02.symbols | 19 onClick: (k: "left" | "right") => void; 20 >onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) 72 const b0 = <MainButton {...{onClick: (k) => {console.log(k)}}} extra />; // k has type "left" | "r… 75 >onClick : Symbol(onClick, Decl(file.tsx, 26, 28)) 83 const b2 = <MainButton onClick={(k)=>{console.log(k)}} extra />; // k has type "left" | "right" 86 >onClick : Symbol(onClick, Decl(file.tsx, 27, 22)) 114 const c1 = <NoOverload {...{onClick: (k) => {console.log(k)}}} extra />; // k has type any 117 >onClick : Symbol(onClick, Decl(file.tsx, 32, 29))
|
D | tsxReactEmitNesting.types | 14 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 19 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 58 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 93 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 98 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 104 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 108 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 126 …>{todo.title}</label> <button class="destroy" onClick={ctrl.removeTodo.… 163 … <button class="destroy" onClick={ctrl.removeTodo.bind(ctrl,todo)}></button> 164 ><button class="destroy" onClick={ctrl.removeTodo.bind(ctrl,todo)}></button> : error [all …]
|
D | tsxSpreadDoesNotReportExcessProps.symbols | 7 class MyComponent extends React.Component<{dataSource: number[], onClick?: any}, {}> { 13 >onClick : Symbol(onClick, Decl(tsxSpreadDoesNotReportExcessProps.tsx, 4, 64))
|
D | jsxFragmentFactoryNoUnusedLocals.symbols | 29 <button onClick={() => setCnt((prev) => prev + 1)} type="button">Update</button> 31 >onClick : Symbol(onClick, Decl(jsxFragmentFactoryNoUnusedLocals.tsx, 11, 15))
|
/third_party/typescript/tests/cases/conformance/jsx/ |
D | tsxStatelessFunctionComponentOverload5.tsx | 16 onClick: React.MouseEventHandler<any>; 37 onClick: ()=>{} 55 const b0 = <MainButton to='/some/path' onClick={(e)=>{}}>GO</MainButton>; // extra property; 56 const b1 = <MainButton onClick={(e: any)=> {}} {...obj0}>Hello world</MainButton>; // extra proper… 58 const b3 = <MainButton {...{to: "10000"}} {...{onClick: (k) => {}}} />; // extra property 60 const b5 = <MainButton {...{ onClick(e: any) { } }} {...obj0} />; // Spread retain method declarat… 61 const b6 = <MainButton {...{ onClick(e: any){} }} children={10} />; // incorrect type for optional… 62 const b7 = <MainButton {...{ onClick(e: any){} }} children="hello" className />; // incorrect type…
|
D | tsxStatelessFunctionComponentOverload6.tsx | 16 onClick: React.MouseEventHandler<any>; 33 onClick: () => {} 50 const b1 = <MainButton onClick={(e) => {}}>Hello world</MainButton>; 56 const b7 = <MainButton {...{onClick: () => { console.log("hi") }}} />; 57 const b8 = <MainButton {...{onClick() {}}} />; // OK; method declaration get retained (See GitHub … 60 const b11 = <MainButton onClick={(e) => {}} className="hello" data-format>Hello world</MainButton>;
|
/third_party/typescript/tests/dets/cases/ |
D | statusManagementOfPageLevelVariables.ets | 47 .onClick(() => { 64 .onClick(() => { 70 .onClick(() => { 87 .onClick(() => { 105 .onClick(() => { 120 .onClick(() => { 137 .onClick(() => { 156 .onClick(() => { 161 .onClick(() => { 238 .onClick(() => { [all …]
|
D | statusManagementOfApplicationLevelVariables.ets | 32 .onClick(() => { 36 .onClick(() => { 49 .onClick(() => { 56 .onClick(() => { 83 .onClick(() => { 101 .onClick(() => { 122 .onClick(() => this.storageLink += 1) 136 .onClick(() => this.storageLink += 1)
|
/third_party/typescript/tests/cases/compiler/ |
D | missingSelf.ts | 3 public a() { this.onClick(); } 4 public onClick() { } method in CalcButton 9 public b() { () => this.onClick(); } 10 public onClick() { } method in CalcButton2
|
/third_party/typescript/tests/cases/conformance/types/contextualTypes/jsxAttributes/ |
D | contextuallyTypedStringLiteralsInJsxAttributes02.tsx | 16 onClick: (k: "left" | "right") => void; 34 const b0 = <MainButton {...{onClick: (k) => {console.log(k)}}} extra />; // k has type "left" | "r… 35 const b2 = <MainButton onClick={(k)=>{console.log(k)}} extra />; // k has type "left" | "right" 40 const c1 = <NoOverload {...{onClick: (k) => {console.log(k)}}} extra />; // k has type any
|
/third_party/flutter/skia/samplecode/ |
D | Sample.cpp | 78 this->onClick(fClick.get()); in mouse() 86 return this->onClick(fClick.get()); in mouse() 95 bool result = this->onClick(fClick.get()); in mouse() 113 bool Sample::onClick(Click*) { in onClick() function in Sample
|