We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd9a57 commit f2db337Copy full SHA for f2db337
packages/haskell/nursery.js
@@ -1,4 +1,5 @@
1
const { setup } = require('@ast-grep/nursery')
2
+const assert = require('node:assert')
3
const languageRegistration = require('./index')
4
5
setup({
@@ -7,6 +8,9 @@ setup({
7
8
treeSitterPackage: 'tree-sitter-haskell',
9
languageRegistration,
10
testRunner: parse => {
- // add test here
11
+ const sg = parse('let x = 3 in x + x')
12
+ const root = sg.root()
13
+ const node = root.find('let $A = $B in $A + $A')
14
+ assert.equal(node.kind(), 'let_in')
15
},
16
})
0 commit comments