Skip to content

Commit ccf4a03

Browse files
committed
update pubspec constraints, and add sample from moduloValue
1 parent 7e447dc commit ccf4a03

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tree_sitter/example/tree_sitter.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ void main() {
77
final parser = Parser(
88
sharedLibrary: resolveDylibPath('dart', path: Directory.current.path),
99
entryPoint: 'tree_sitter_dart');
10-
final program = "class A {}";
10+
const program = "class A {}";
11+
// const program = r"""
12+
// void main() {
13+
// test('', () {
14+
// 'åÅ';
15+
// 'åÅ';
16+
// });
17+
// }
18+
// """;
1119
final tree = parser.parse(program);
1220
print(tree.root.child(0).namedChild(0).string);
1321
print(parser.getText(tree.root.child(0).namedChild(0)));

tree_sitter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.1.1
44
repository: https://github.com/UserNobody14/tree-sitter-dart
55

66
environment:
7-
sdk: ">=3.0.0 <3.2.0"
7+
sdk: ">=3.0.0 <3.4.0"
88

99
dependencies:
1010
dylib: ^0.3.3

0 commit comments

Comments
 (0)