Suggestion: split setIgnoreSyntaxErrors flag into 2 flags, setIgnoreSyntaxErrors and setIgnoreSemanticErrors
Open
- Dominant language
- Java
- Stars
- 2k
- Forks
- 392
- Avg merge
- 11h 24m
- Merged PRs (30d)
- 36
Description
Hi,
does spoon work on un-compilable source code as input? i.e syntax correct but semantics wrong source code?
un-compilable: means not accepted by the regular `javac` compiler; but the syntax is correct.
E.g. I have some old Java code, that is syntax correct, but semantics wrong (e.g. missing some class type decls); I plan to use spoon first transform and generate some new code, and only compile the final new code.
Does spoon work in this scenario? or the old code has to be compilable first to use spoon?
Can spoon do partial semantic analysis? i.e do it as much as it can, but do not abort on (undecidable) semantic errors?
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.