Skip to content

Commit

Permalink
change term reference to symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
joswig committed Nov 5, 2024
1 parent f3eb04c commit 37a6cca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/components/sequencing/form/ArgEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
let argDef: FswCommandArgument | undefined = undefined;
let enableRepeatAdd: boolean = false;
let isVariable: boolean = false;
let isSymbol: boolean = false;
$: argDef = argInfo.argDef;
$: {
isVariable = commandInfoMapper.isArgumentNodeOfVariableType(argInfo.node ?? null);
if (!!argDef && isVariable) {
isSymbol = commandInfoMapper.isArgumentNodeOfVariableType(argInfo.node ?? null);
if (!!argDef && isSymbol) {
argDef = {
arg_type: 'enum',
bit_length: null,
Expand Down Expand Up @@ -84,15 +84,15 @@
<ArgTitle
argDef={argInfo.argDef}
{commandInfoMapper}
argumentValueCategory={isVariable ? 'Reference' : 'Literal'}
argumentValueCategory={isSymbol ? 'Symbol' : 'Literal'}
setInEditor={val => {
if (argInfo.node) {
setInEditor(argInfo.node, val);
}
}}
/>
{/if}
{#if isVariable && isFswCommandArgumentEnum(argDef)}
{#if isSymbol && isFswCommandArgumentEnum(argDef)}
<div class="st-typography-small-caps">Reference</div>
<EnumEditor
{argDef}
Expand Down
4 changes: 2 additions & 2 deletions src/components/sequencing/form/ArgTitle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
export let argDef: FswCommandArgument;
export let commandInfoMapper: CommandInfoMapper;
export let setInEditor: (val: string) => void;
export let argumentValueCategory: 'Literal' | 'Reference';
export let argumentValueCategory: 'Literal' | 'Symbol';
let title: string = '';
let typeInfo: string = '';
Expand Down Expand Up @@ -105,7 +105,7 @@

<select class="st-select" required bind:value={argumentValueCategory} on:change={onValueTypeChange}>
<option value="Literal"> Literal </option>
<option value="Reference"> Reference </option>
<option value="Symbol"> Symbol </option>
</select>
</div>
</Collapse>
Expand Down

0 comments on commit 37a6cca

Please sign in to comment.