Add grouping of module instances in Feature Tree (#6125)
* Rename operations to be more generic grouping * Add group enum * Add module instance groups * Change to export all operation ts-rs types to the same file * Fix Feature Tree display of modules to use name * Ignore clippy warning * Update output after operation changes * Change module instances in Feature Tree use to import icon * Fix error message when attempting to delete module instance
This commit is contained in:
@ -16,17 +16,20 @@ function stdlib(name: string): Operation {
|
||||
|
||||
function userCall(name: string): Operation {
|
||||
return {
|
||||
type: 'UserDefinedFunctionCall',
|
||||
name,
|
||||
functionSourceRange: defaultSourceRange(),
|
||||
unlabeledArg: null,
|
||||
labeledArgs: {},
|
||||
type: 'GroupBegin',
|
||||
group: {
|
||||
type: 'FunctionCall',
|
||||
name,
|
||||
functionSourceRange: defaultSourceRange(),
|
||||
unlabeledArg: null,
|
||||
labeledArgs: {},
|
||||
},
|
||||
sourceRange: defaultSourceRange(),
|
||||
}
|
||||
}
|
||||
function userReturn(): Operation {
|
||||
return {
|
||||
type: 'UserDefinedFunctionReturn',
|
||||
type: 'GroupEnd',
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user