Opened 15 years ago
Closed 15 years ago
#315 closed defect (fixed)
Set source file when constructing AST nodes
| Reported by: | zirkel | Owned by: | stachnik |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1 |
| Component: | ast | Version: | 1.1 |
| Keywords: | Cc: |
Description
When the source information is set, the File field is currently left as null. This causes a null pointer exception whenever TASS tries to print the source.
Change History (3)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Seems to be at least partially in ast, based on this comment in ast.parser.LeafSourceParser.java:
//FIXME: Actually get file instead of passing in null
Note:
See TracTickets
for help on using tickets.

I got rid of the null pointer exception in the Source class by checking whether file is null.
But this still has to be fixed.
Is the problem in the ast module, or the Clang module?