MCPcopy Create free account
hub / github.com/NetEase/tango / updateState

Method updateState

packages/core/src/models/store-module.ts:118–121  ·  view source on GitHub ↗

* 更新状态代码 * @param stateName 状态名 * @param code 代码

(stateName: string, code: string)

Source from the content-addressed store, hash-verified

116 * @param code 代码
117 */
118 updateState(stateName: string, code: string) {
119 this.ast = updateStoreState(this.ast, stateName, code);
120 return this;
121 }
122
123 _analysisAst() {
124 const { namespace, states, actions } = traverseStoreFile(this.ast);

Callers 1

Calls 1

updateStoreStateFunction · 0.90

Tested by

no test coverage detected