MCPcopy Create free account
hub / github.com/microsoft/SandDance / newGroup

Method newGroup

packages/sanddance-explorer/src/dialogs/search.tsx:150–157  ·  view source on GitHub ↗
(key: number, clause: SearchExpressionClause)

Source from the content-addressed store, hash-verified

148 }
149
150 newGroup(key: number, clause: SearchExpressionClause) {
151 const group: InputSearchExpressionGroup = {
152 key,
153 clause,
154 expressions: [this.newExpression(0, null)],
155 };
156 return group;
157 }
158
159 updateGroup(partialGroup: Partial<InputSearchExpressionGroup>, groupIndex: number) {
160 const groups: InputSearchExpressionGroup[] = [...this.state.groups];

Callers 2

getInitialStateMethod · 0.95
addGroupMethod · 0.95

Calls 1

newExpressionMethod · 0.95

Tested by

no test coverage detected