antlr / antlr/symtab

missing returnType of FunctionType

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
53
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Hello, I wonder why [FunctionType](https://github.com/antlr/symtab/blob/master/src/org/antlr/symtab/FunctionType.java) don't provide a method to return `returnType` of `FunctionType`.

Also, the `toString` method of `FunctionType` also confuses me, maybe it's better to take `argumentTypes` into consideration?
```java
@Override
public String toString() {
return "*"+ returnType;
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/org/antlr/symtab/FunctionType.java and read how returnType and argumentTypes are stored and represented. Confirm the expected accessor and string format from the existing class, then verify that the completed behavior exposes returnType and includes argumentTypes in toString().

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.