Inconsistent definition of value nodes
See original GitHub issueI noticed that “value nodes” are defined differently in language/ast and language/predicates:
export type ValueNode =
| VariableNode // <-- missing in isValueNode
| IntValueNode
| FloatValueNode
| StringValueNode
| BooleanValueNode
| NullValueNode
| EnumValueNode
| ListValueNode
| ObjectValueNode;
export function isValueNode(node: ASTNode): boolean %checks {
return (
node.kind === Kind.INT ||
node.kind === Kind.FLOAT ||
node.kind === Kind.STRING ||
node.kind === Kind.BOOLEAN ||
node.kind === Kind.NULL ||
node.kind === Kind.ENUM ||
node.kind === Kind.LIST ||
node.kind === Kind.OBJECT ||
node.kind === Kind.OBJECT_FIELD // <-- missing in ValueNode
);
}
Shouldn’t these two definitions be consistent with each other?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
inconsistent (Statistics Toolbox)
The inconsistency coefficient characterizes each link in a cluster tree by comparing its length with the average length of other links at the...
Read more >Consistent heuristic - Wikipedia
h is the consistent heuristic function; N is any node in the graph; P is any descendant of N; G is any goal...
Read more >Inconsistent heuristics in theory and practice
introduced by Mero [34] as a method for propagating inconsistent values in the search from a parent node to its children.
Read more >Inconsistent Heuristics
The inconsistent heuristics do not have this problem; a node can receive any value, meaning that the distribution of values seen is closer...
Read more >A* Search with Inconsistent Heuristics
Bidirectional pathmax (BPMX) [Felner et al., 2005] is a method that works with inconsistent heuristics and prop- agates large values to neighboring nodes....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It’s a pure typo on my side. My idea was to match
ValueNodeexactly.Thanks. I keep in touch with you when I have ideas or get feedback for improvement.