Home
last modified time | relevance | path

Searched refs:setState (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/typescript/tests/baselines/reference/
DcircularResolvedSignature.types26 const [state, setState] = useState<Data>(() => ({
28 >setState : (s: Readonly<{ value: number; foo: (arg: any) => void; bar: (arg: any) => void; }>) => …
29 …ing", // this should be a number foo: (arg) => setState(arg), bar: (arg) => setState
31 …ing", // this should be a number foo: (arg) => setState(arg), bar: (arg) => setState
32 …ing", // this should be a number foo: (arg) => setState(arg), bar: (arg) => setState
33 …ing", // this should be a number foo: (arg) => setState(arg), bar: (arg) => setState
39 foo: (arg) => setState(arg),
41 >(arg) => setState(arg) : (arg: any) => void
43 >setState(arg) : void
44 >setState : (s: Readonly<{ value: number; foo: (arg: any) => void; bar: (arg: any) => void; }>) => …
[all …]
DmappedTypeErrors.js94 function setState<T, K extends keyof T>(obj: T, props: Pick<T, K>) {
101 setState(foo, { a: "test", b: 43 })
102 setState(foo, { a: "hi" });
103 setState(foo, { b: undefined });
104 setState(foo, { });
105 setState(foo, foo);
106 setState(foo, { a: undefined }); // Error
107 setState(foo, { c: true }); // Error
111 setState<K extends keyof T>(props: Pick<T, K>) { field in C
119 c.setState({ a: "test", b: 43 });
[all …]
DmappedTypeErrors.types250 // Verify use of Pick<T, K> for setState functions (#12793)
260 function setState<T, K extends keyof T>(obj: T, props: Pick<T, K>) {
261 >setState : <T, K extends keyof T>(obj: T, props: Pick<T, K>) => void
288 setState(foo, { a: "test", b: 43 })
289 >setState(foo, { a: "test", b: 43 }) : void
290 >setState : <T, K extends keyof T>(obj: T, props: Pick<T, K>) => void
298 setState(foo, { a: "hi" });
299 >setState(foo, { a: "hi" }) : void
300 >setState : <T, K extends keyof T>(obj: T, props: Pick<T, K>) => void
306 setState(foo, { b: undefined });
[all …]
DmappedTypeErrors.symbols309 // Verify use of Pick<T, K> for setState functions (#12793)
321 function setState<T, K extends keyof T>(obj: T, props: Pick<T, K>) {
322 >setState : Symbol(setState, Decl(mappedTypeErrors.ts, 90, 1))
351 setState(foo, { a: "test", b: 43 })
352 >setState : Symbol(setState, Decl(mappedTypeErrors.ts, 90, 1))
357 setState(foo, { a: "hi" });
358 >setState : Symbol(setState, Decl(mappedTypeErrors.ts, 90, 1))
362 setState(foo, { b: undefined });
363 >setState : Symbol(setState, Decl(mappedTypeErrors.ts, 90, 1))
368 setState(foo, { });
[all …]
DcircularResolvedSignature.symbols31 const [state, setState] = useState<Data>(() => ({
33 >setState : Symbol(setState, Decl(circularResolvedSignature.ts, 9, 17))
40 foo: (arg) => setState(arg),
43 >setState : Symbol(setState, Decl(circularResolvedSignature.ts, 9, 17))
46 bar: (arg) => setState(arg),
49 >setState : Symbol(setState, Decl(circularResolvedSignature.ts, 9, 17))
DcircularResolvedSignature.js11 const [state, setState] = useState<Data>(() => ({
13 foo: (arg) => setState(arg),
14 bar: (arg) => setState(arg),
26 foo: function (arg) { return setState(arg); },
27 bar: function (arg) { return setState(arg); }
28 }); }), state = _a[0], setState = _a[1];
DindexedAccessRelation.symbols8 setState<K extends keyof S>(state: Pick<S, K>) {}
9 >setState : Symbol(Component.setState, Decl(indexedAccessRelation.ts, 2, 20))
45 this.setState({ a: a });
46 >this.setState : Symbol(Component.setState, Decl(indexedAccessRelation.ts, 2, 20))
48 >setState : Symbol(Component.setState, Decl(indexedAccessRelation.ts, 2, 20))
DindexedAccessRelation.types7 setState<K extends keyof S>(state: Pick<S, K>) {}
8 >setState : <K extends keyof S>(state: Pick<S, K>) => void
28 this.setState({ a: a });
29 >this.setState({ a: a }) : void
30 >this.setState : <K extends keyof S | "a">(state: Pick<S & State<T>, K>) => void
32 >setState : <K extends keyof S | "a">(state: Pick<S & State<T>, K>) => void
DindexedAccessRelation.js5 setState<K extends keyof S>(state: Pick<S, K>) {} field in Component
17 this.setState({ a: a });
44 Component.prototype.setState = function (state) { }; method in Component
58 this.setState({ a: a });
DtsxAttributeResolution12.types24 setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
25 >setState : { (f: (prevState: S, props: P) => S, callback?: () => any): void; (state: S, callback?:…
31 setState(state: S, callback?: () => any): void;
32 >setState : { (f: (prevState: S, props: P) => S, callback?: () => any): void; (state: S, callback?:…
/third_party/typescript/tests/cases/conformance/types/mapped/
DmappedTypeErrors.ts96 function setState<T, K extends keyof T>(obj: T, props: Pick<T, K>) { function
103 setState(foo, { a: "test", b: 43 })
104 setState(foo, { a: "hi" });
105 setState(foo, { b: undefined });
106 setState(foo, { });
107 setState(foo, foo);
108 setState(foo, { a: undefined }); // Error
109 setState(foo, { c: true }); // Error
113 setState<K extends keyof T>(props: Pick<T, K>) { method in C
121 c.setState({ a: "test", b: 43 });
[all …]
/third_party/python/Mac/PythonLauncher/
DPreferencesWindowController.m32 [honourhashbang setState: [settings honourhashbang]];
33 [debug setState: [settings debug]];
34 [verbose setState: [settings verbose]];
35 [inspect setState: [settings inspect]];
36 [optimize setState: [settings optimize]];
37 [nosite setState: [settings nosite]];
38 [tabs setState: [settings tabs]];
40 [with_terminal setState: [settings with_terminal]];
DMyDocument.m52 [honourhashbang setState: [settings honourhashbang]];
53 [debug setState: [settings debug]];
54 [verbose setState: [settings verbose]];
55 [inspect setState: [settings inspect]];
56 [optimize setState: [settings optimize]];
57 [nosite setState: [settings nosite]];
58 [tabs setState: [settings tabs]];
61 [with_terminal setState: [settings with_terminal]];
/third_party/vk-gl-cts/executor/
DxeTcpIpLink.cpp117 void TcpIpLinkState::setState (CommLinkState state, const char* error) in setState() function in xe::TcpIpLinkState
247 m_state.setState(COMMLINKSTATE_ERROR, e.what()); in run()
346 m_state.setState(COMMLINKSTATE_ERROR, e.what()); in run()
372 m_state.setState(COMMLINKSTATE_TEST_PROCESS_RUNNING); in handleMessage()
379 m_state.setState(COMMLINKSTATE_TEST_PROCESS_LAUNCH_FAILED, msg.reason.c_str()); in handleMessage()
387 m_state.setState(COMMLINKSTATE_TEST_PROCESS_FINISHED); in handleMessage()
470 m_state.setState(COMMLINKSTATE_READY, ""); in connect()
482 m_state.setState(COMMLINKSTATE_ERROR, e.what()); in connect()
492 m_state.setState(COMMLINKSTATE_ERROR, "Not connected"); in disconnect()
496 m_state.setState(COMMLINKSTATE_ERROR, e.what()); in disconnect()
[all …]
/third_party/skia/third_party/externals/oboe/src/opensles/
DAudioOutputStreamOpenSLES.cpp233 setState(StreamState::Open); in open()
301 setState(StreamState::Starting); in requestStart()
304 setState(StreamState::Started); in requestStart()
312 setState(initialState); in requestStart()
333 setState(StreamState::Pausing); in requestPause()
341 setState(StreamState::Paused); in requestPause()
343 setState(initialState); in requestPause()
390 setState(StreamState::Stopping); in requestStop()
406 setState(StreamState::Stopped); in requestStop()
408 setState(initialState); in requestStop()
DAudioInputStreamOpenSLES.cpp208 setState(StreamState::Open); in open()
269 setState(StreamState::Starting); in requestStart()
272 setState(StreamState::Started); in requestStart()
277 setState(initialState); in requestStart()
310 setState(StreamState::Stopping); in requestStop()
315 setState(StreamState::Stopped); in requestStop()
317 setState(initialState); in requestStop()
/third_party/node/deps/npm/node_modules/socks/build/client/
Dsocksclient.js29 this.setState(constants_1.SocksClientState.Created);
213 setState(newState) { method in SocksClient
245 this.setState(constants_1.SocksClientState.Connecting);
286 this.setState(constants_1.SocksClientState.Connected);
294 this.setState(constants_1.SocksClientState.SentInitialHandshake);
384 this.setState(constants_1.SocksClientState.Error);
442 this.setState(constants_1.SocksClientState.BoundWaitingForConnection);
447 this.setState(constants_1.SocksClientState.Established);
469 this.setState(constants_1.SocksClientState.Established);
499 this.setState(constants_1.SocksClientState.SentInitialHandshake);
[all …]
/third_party/skia/modules/audioplayer/
DSkAudioPlayer.h36 State setState(State); // returns actual State
40 void play() { this->setState(State::kPlaying); } in play()
41 void pause() { this->setState(State::kPaused); } in pause()
42 void stop() { this->setState(State::kStopped); } in stop()
/third_party/typescript/tests/cases/compiler/
DcircularResolvedSignature.ts10 const [state, setState] = useState<Data>(() => ({ constant
12 foo: (arg) => setState(arg),
13 bar: (arg) => setState(arg),
/third_party/node/deps/icu-small/source/i18n/
Dformattedval_sbimpl.cpp66 cfpos.setState(UFIELD_CATEGORY_NUMBER, rawField, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition()
153 cfpos.setState(currField.getCategory(), currField.getField(), start, end); in nextPositionImpl()
170 cfpos.setState( in nextPositionImpl()
194 cfpos.setState( in nextPositionImpl()
211 cfpos.setState( in nextPositionImpl()
241 cfpos.setState( in nextPositionImpl()
252 cfpos.setState( in nextPositionImpl()
286 cfpos.setState( in nextPositionImpl()
/third_party/icu/icu4c/source/i18n/
Dformattedval_sbimpl.cpp66 cfpos.setState(UFIELD_CATEGORY_NUMBER, rawField, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition()
153 cfpos.setState(currField.getCategory(), currField.getField(), start, end); in nextPositionImpl()
170 cfpos.setState( in nextPositionImpl()
194 cfpos.setState( in nextPositionImpl()
211 cfpos.setState( in nextPositionImpl()
241 cfpos.setState( in nextPositionImpl()
252 cfpos.setState( in nextPositionImpl()
286 cfpos.setState( in nextPositionImpl()
/third_party/skia/third_party/externals/icu/source/i18n/
Dformattedval_sbimpl.cpp66 cfpos.setState(UFIELD_CATEGORY_NUMBER, rawField, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition()
148 cfpos.setState(currField.getCategory(), currField.getField(), start, end); in nextPositionImpl()
165 cfpos.setState( in nextPositionImpl()
189 cfpos.setState( in nextPositionImpl()
206 cfpos.setState( in nextPositionImpl()
231 cfpos.setState( in nextPositionImpl()
242 cfpos.setState( in nextPositionImpl()
276 cfpos.setState( in nextPositionImpl()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedValueStringBuilderImpl.java109 cfpos.setState(rawField, null, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition()
200 cfpos.setState((Field) currField, null, start, end); in nextPosition()
214 cfpos.setState(ListFormatter.Field.ELEMENT, null, fieldStart, end); in nextPosition()
233 cfpos.setState(NumberFormat.Field.INTEGER, null, j - self.zero + 1, i - self.zero); in nextPosition()
246 cfpos.setState(numericField, null, j - self.zero + 1, i - self.zero); in nextPosition()
259 cfpos.setState(ph.spanField, ph.value, fieldStart, end); in nextPosition()
266 cfpos.setState(ListFormatter.Field.ELEMENT, null, fieldStart, end); in nextPosition()
296 cfpos.setState( in nextPosition()
/third_party/skia/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/
DViewerApplication.java50 mViewerActivity.setState(mStateJsonStr); in setViewerActivity()
73 public void setState(String stateJsonStr) { in setState() method in ViewerApplication
81 mViewerActivity.setState(mStateJsonStr); in setState()
/third_party/vk-gl-cts/framework/common/
DtcuTestHierarchyIterator.cpp100 iter.setState(NodeIter::NISTATE_ENTER); // Root is never reported in TestHierarchyIterator()
187 iter.setState(NodeIter::NISTATE_ENTER); in next()
195 iter.setState(NodeIter::NISTATE_LEAVE); in next()
200 iter.setState(NodeIter::NISTATE_TRAVERSE_CHILDREN); in next()
236 iter.setState(NodeIter::NISTATE_LEAVE); in next()

1234