-
Notifications
You must be signed in to change notification settings - Fork 20
parsing error on method parameter declaration "cAdditionalSQL: IDictionary<string, string>=nil" #318
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
Comments
My guess is that the This is yet another argument in favour of #261 (and against tokenising before parsing). |
Agreed with @zaneduffield. |
Added code example from #321 |
Thanks @simonegirlanda, this topic seems a much better fit for the problems I'm having. A few additional examples for this issue: 09:17:06.430 ERROR Error while processing C:\gitlab-runner\builds\sCyaQG4y\0\secura\administrator\Lib\Secura Lib\SecuraTable.pas 09:17:07.478 ERROR Error while processing C:\gitlab-runner\builds\sCyaQG4y\0\secura\administrator\Lib\Secura Lib\pnglang2.pas 09:17:32.233 ERROR Error while processing C:\gitlab-runner\builds\sCyaQG4y\0\secura\administrator\Lib\Secura Lib\SecuraGrid.pas |
Hi @LinriAB, Your first case is almost certainly an instance of this issue, but I'm not so sure about cases 2 and 3. Can you isolate the problem a bit further, maybe share some snippets of code that reproduce those other errors? |
Prerequisites
SonarDelphi version
1.11.0
SonarQube version
10.7
Issue description
We had this error during parsing:
adding spaces before the = sign in the parameter declaration will solve the problem
Steps to reproduce
try analyze the following code.
add spaces before and after the = sign (in the class Public methods declaration) to remove the error
Minimal Delphi code exhibiting the issue
Case 1
another code example
In this case a 'missing FORWARD' message error is produced
The text was updated successfully, but these errors were encountered: