Syntax Tree: Add validations #93
Labels
enhancement
New feature or request
good first issue
Good for newcomers
unit-syntax-tree
Related to the syntax tree module
Milestone
Description
generateFromSnapshot
function insrc/syntax/tree/syntaxTree.ts
generates the syntax tree from a snapshot. However, there is no construct to validate the input snapshot.Also, attachment checking functions and attaching functions have no connections — the idea is that the connection checks will externally be performed first before the connection is made. In this way, if a connection is known to be valid, we can skip the additional cost of reverifying. However, it would be nice to optionally check connection validity before the connections, as a direct step and not a two step process in certain use cases.
Objectives
Snapshot validation
ITreeSnapshotData
,ITreeSnapshotExpression
,ITreeSnapshotStatement
,ITreeSnapshotBlock
(discuss your approach before proceeding as the interfaces listed as TypeScript specific and JavaScript doesn't have them)generateFromSnapshot
Connection validation
attachArgumentCheck
to indicate whether to perform a validationattachInstructionBelowCheck
to indicate whether to perform a validationattachInstructionInsideCheck
to indicate whether to perform a validationThis can be done as two separate PRs.
The text was updated successfully, but these errors were encountered: