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 5208163 commit 67dc079Copy full SHA for 67dc079
packages/java/nursery.js
@@ -1,12 +1,16 @@
1
const { setup } = require('@ast-grep/nursery')
2
const languageRegistration = require('./index')
3
+const assert = require('node:assert')
4
5
setup({
6
dirname: __dirname,
7
name: 'java',
8
treeSitterPackage: 'tree-sitter-java',
9
languageRegistration,
10
testRunner: parse => {
- // add test here
11
+ const sg = parse('int a = 123;')
12
+ const root = sg.root()
13
+ const node = root.find('int a = 123')
14
+ assert.equal(node.kind(), 'local_variable_declaration')
15
},
16
})
0 commit comments