@@ -7,11 +7,7 @@ import type { Atom, Molecule, SyntaxTree } from '../parsing.js'
77import type { Expression } from './expression.js'
88import type { KeyPath } from './key-path.js'
99import { isKeyword , type Keyword } from './keyword.js'
10- import {
11- makeObjectNode ,
12- makeUnelaboratedObjectNode ,
13- type ObjectNode ,
14- } from './object-node.js'
10+ import { makeObjectNode , type ObjectNode } from './object-node.js'
1511import {
1612 extractStringValueIfPossible ,
1713 updateValueAtKeyPathInSemanticGraph ,
@@ -44,10 +40,7 @@ export const elaborate = (
4440 elaborateWithContext ( program , {
4541 keywordHandlers,
4642 location : [ ] ,
47- program :
48- typeof program === 'string'
49- ? program
50- : makeUnelaboratedObjectNode ( program ) ,
43+ program : typeof program === 'string' ? program : makeObjectNode ( program ) ,
5144 } )
5245
5346export const elaborateWithContext = (
@@ -161,7 +154,7 @@ const handleObjectNodeWhichMayBeAExpression = (
161154 const { 0 : possibleKeyword , ...possibleArguments } = node
162155 return isKeyword ( possibleKeyword )
163156 ? context . keywordHandlers [ possibleKeyword ] (
164- makeUnelaboratedObjectNode ( {
157+ makeObjectNode ( {
165158 ...possibleArguments ,
166159 0 : possibleKeyword ,
167160 } ) ,
0 commit comments