diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2022-09-27 15:10:00 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2022-12-05 14:21:53 +0200 |
| commit | 0a56af62ffa95360587728b82c947a2936743a4c (patch) | |
| tree | 1083bbc78dc961382d0062c44ad9d251b11b5fd7 /test/TestUtils.hs | |
| parent | 2952ecc005466775c9ac70a702da1bbad17a28e5 (diff) | |
Add src position to data structures
Diffstat (limited to 'test/TestUtils.hs')
| -rw-r--r-- | test/TestUtils.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/TestUtils.hs b/test/TestUtils.hs index 7247ef5..5206d27 100644 --- a/test/TestUtils.hs +++ b/test/TestUtils.hs @@ -28,3 +28,6 @@ expectErrorL lc = case res of Left (LException err) -> return err Right val -> error $ "unexpected success: " ++ show val + +wrapAST :: ASTNode -> AST +wrapAST node = AST { astNode = node } |
