You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this belongs here or in the cfparser repository. When processing cfscript functions such as:
01: public numeric function test(
02: required numeric inNum
03: )
04: output=false
05: hint="I am a test function."
06: {
07: return ARGUMENTS.inNum + 1;
08:}
09:
10: public numeric function test2(
...
There are several errors that are coming up that possibly shouldn't.
"Function test is missing a hint". Line 01. There is a hint there and it is supposedly in the correct place. Both Lucee and ACF11 handle this code no problem.
"Unable to parse". Line 04. Same as previous.
"Variable hint is not declared with a var statement". Line 05. This is not a variable declaration.
"End of statement(;) expected instead of {". Line 06. Caused by the hint on the previous line.
"End of statement(;) expected instead of test2". Line 10. Caused by previous function not being parsed correctly.
I'm pretty sure that the script based code is correct and most of the projects I'm working on prefer the script syntax.
Note: Getting rid of the output=false and hint="I am a test function." gets rid of those errors and replaces it with "Function test is missing a hint". Line 01.
Please let me know if this is in the right project, or if there is a different one I should submit this to.
Thanks,
Steve
The text was updated successfully, but these errors were encountered:
I'm not sure if this belongs here or in the cfparser repository. When processing cfscript functions such as:
01: public numeric function test(
02: required numeric inNum
03: )
04: output=false
05: hint="I am a test function."
06: {
07: return ARGUMENTS.inNum + 1;
08:}
09:
10: public numeric function test2(
...
There are several errors that are coming up that possibly shouldn't.
I'm pretty sure that the script based code is correct and most of the projects I'm working on prefer the script syntax.
Note: Getting rid of the output=false and hint="I am a test function." gets rid of those errors and replaces it with "Function test is missing a hint". Line 01.
Please let me know if this is in the right project, or if there is a different one I should submit this to.
Thanks,
Steve
The text was updated successfully, but these errors were encountered: