Comments (2)
I tried parsing this input with the latest version of the grammar in the master branch, and I got the following. The tree seems to match the one returned by the playground.
❯ tree-sitter parse a.cs
(compilation_unit [0, 0] - [0, 89]
(using_directive [0, 0] - [0, 13]
name: (identifier [0, 6] - [0, 12]))
(class_declaration [0, 14] - [0, 89]
name: (identifier [0, 20] - [0, 27])
body: (declaration_list [0, 28] - [0, 89]
(method_declaration [0, 30] - [0, 87]
(modifier [0, 30] - [0, 36])
type: (predefined_type [0, 37] - [0, 41])
name: (identifier [0, 42] - [0, 46])
parameters: (parameter_list [0, 46] - [0, 48])
body: (block [0, 49] - [0, 87]
(expression_statement [0, 51] - [0, 85]
(invocation_expression [0, 51] - [0, 84]
function: (member_access_expression [0, 51] - [0, 68]
expression: (identifier [0, 51] - [0, 58])
name: (identifier [0, 59] - [0, 68]))
arguments: (argument_list [0, 68] - [0, 84]
(ERROR [0, 69] - [0, 71]
(escape_sequence [0, 69] - [0, 71]))
(argument [0, 71] - [0, 76]
(identifier [0, 71] - [0, 76]))
(argument [0, 78] - [0, 83]
(identifier [0, 78] - [0, 83]))))))))))
a.cs 0 ms (ERROR [0, 69] - [0, 71])
from tree-sitter-c-sharp.
We should probably publish a new version. I can do the GitHub and npm side but as for the Rust crate... 🤷🏻
from tree-sitter-c-sharp.
Related Issues (20)
- nameof() expressions have no distinct exported tree-node, but are instead reported as invocation_expressions HOT 2
- Generic type in declaration parsed as binary expression
- Improve type parsing HOT 2
- Fix parsing UTF-16 files HOT 2
- Fix `record_base` to allow generic types and generic constructor calls HOT 3
- Add support for C# 11 unsigned right shift operator HOT 1
- Move `src/parser.c` to git LFS HOT 24
- Allow contextual keywords to be used as identifiers HOT 4
- Improve pattern parsing HOT 2
- Improve interpolated raw string literal parsing HOT 3
- Improve declaration expression parsing HOT 1
- Generic methods not highlighted correctly HOT 9
- Improve `#pragma` parsing
- Unhide _preprocessor_call
- Fix `is_expression` and `is_pattern_expression` parsing
- Indentation Support? HOT 2
- multiline Lambda expression'a don't indent well HOT 1
- Highlight members within a class differently than local variables HOT 1
- Using statement with a function call with parameters is not parsed as invocation, instead a variable declaration HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-sitter-c-sharp.