File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ export {
6767 applyKeyPathToSemanticGraph ,
6868 containsAnyUnelaboratedNodes ,
6969 isSemanticGraph ,
70- isUnelaborated ,
7170 matchSemanticGraph ,
7271 serialize ,
7372 stringifySemanticGraphForEndUser ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type {
88import type { Atom , Molecule } from '../parsing.js'
99import type { Canonicalized } from '../parsing/syntax-tree.js'
1010import { inlinePlz , unparse } from '../unparsing.js'
11+ import { isExpression } from './expression.js'
1112import { serializeFunctionNode , type FunctionNode } from './function-node.js'
1213import { stringifyKeyPathForEndUser , type KeyPath } from './key-path.js'
1314import {
@@ -49,15 +50,10 @@ export const applyKeyPathToSemanticGraph = (
4950 }
5051}
5152
52- export const isUnelaborated = ( node : SemanticGraph | Molecule ) : boolean =>
53- typeof node !== 'string' &&
54- unelaboratedKey in node &&
55- node [ unelaboratedKey ] === true
56-
5753export const containsAnyUnelaboratedNodes = (
5854 node : SemanticGraph | Molecule ,
5955) : boolean => {
60- if ( isUnelaborated ( node ) ) {
56+ if ( isExpression ( node ) ) {
6157 return true
6258 } else if ( typeof node === 'object' ) {
6359 for ( const propertyValue of Object . values ( node ) ) {
@@ -113,7 +109,7 @@ export const updateValueAtKeyPathInSemanticGraph = (
113109 operation ,
114110 ) ,
115111 updatedNode =>
116- ( isUnelaborated ( node )
112+ ( isExpression ( node )
117113 ? makeUnelaboratedObjectNode
118114 : makeObjectNode ) ( {
119115 ...node ,
You can’t perform that action at this time.
0 commit comments