Comments (2)
We use it in PMD like this:
try {
astRoot = SummitAST.INSTANCE.parseAndTranslate(task.getFileId().getOriginalPath(), task.getTextDocument().getText().toString(), null);
} catch (SummitAST.ParseException e) {
throw new ParseException(e);
}
There is a static INSTANCE
field, that you need to use. It seems, this is generated by kotlin, because of object SummitAST
declaration.
from summit-ast.
Thanks @adangel - that was indeed the issue. Kotlin is definitely not my strong suite; I was unaware of this consequence of the object
definition.
Also, if you need any help finishing the conversion for PMD to work with SummitAST, I would be glad to help!
from summit-ast.
Related Issues (8)
- Create a symbol resolver
- Support bazel 6.0.0
- Running SummitTool throws "%1 is not a valid Win32 application" error HOT 2
- Failed to build AST HOT 3
- Fail to parses SOSL with WITH USER_MODE or WITH SYSTEM_MODE
- 2.2.0 Jar seems to include an incoherent version number in its pom HOT 4
- Next release 2.3.0? HOT 2
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 summit-ast.