Rename kcl Value to Expr (#3360)
Rename kcl's Value to Expr As Jon pointed out, kcl's `Value` enum is actually an expression. "2+2" isn't a value, it's an expression, which can compute a value. So I renamed it `Expr`.
This commit is contained in:
@ -7,7 +7,7 @@ import {
|
||||
InterpreterFrom,
|
||||
} from 'xstate'
|
||||
import { Selection } from './selections'
|
||||
import { Identifier, Value, VariableDeclaration } from 'lang/wasm'
|
||||
import { Identifier, Expr, VariableDeclaration } from 'lang/wasm'
|
||||
import { commandBarMachine } from 'machines/commandBarMachine'
|
||||
|
||||
type Icon = CustomIconName
|
||||
@ -20,7 +20,7 @@ const INPUT_TYPES = [
|
||||
'boolean',
|
||||
] as const
|
||||
export interface KclExpression {
|
||||
valueAst: Value
|
||||
valueAst: Expr
|
||||
valueText: string
|
||||
valueCalculated: string
|
||||
}
|
||||
|
Reference in New Issue
Block a user