Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with extent function on class property #46

Open
DanielBaciu opened this issue Aug 13, 2021 · 2 comments
Open

Issue with extent function on class property #46

DanielBaciu opened this issue Aug 13, 2021 · 2 comments

Comments

@DanielBaciu
Copy link

We have a class with a property with few extents. The code calling extent function on object property is not parsing.

The error I get is:
..client.p:3:26: unexpected token: (

Code to reproduce:

class ClassWithExtentProp:
define public property pProperty as character no-undo extent public get. public set.
end class.

client.p
define variable oObj as ClassWithExtentProp no-undo.
define variable iCount as integer no-undo.
do iCount = 1 to extent(oObj:pProperty):
end.

Thank you for checking.

@mikefechner
Copy link
Member

Please attach the complete class file as a repro and indicate the version of Proparse you are using.

Are you intending to fix this and issue a pull-request?

@DanielBaciu
Copy link
Author

I'm using proparse.dll version 4.1.0.1219.
Please fix it if possible.

The complete error stack is:

Original Exception: unexpected token: (

C:\Analiza\Parse issue 4_extent\proparseExtentPropError.p:22:26: unexpected token: (
at com.joanju.proparse.ProParser.block_opt(ProParser.java:3862)
at com.joanju.proparse.ProParser.dostate(ProParser.java:3450)
at com.joanju.proparse.ProParser.statement(ProParser.java:2698)
at com.joanju.proparse.ProParser.blockorstate(ProParser.java:560)
at com.joanju.proparse.ProParser.program(ProParser.java:120)
at com.joanju.proparse.DoParse.doParse(DoParse.java:202)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:270)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:226)
at org.prorefactor.treeparser.ParseUnit.treeParser01(ParseUnit.java:348)
at cli.Progress.ClrBridge.ClrApi.InvokeMethod(Unknown Source)

extent.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants