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

Add support for static accessor operator (::) #700

Open
cybersonic opened this issue Jan 27, 2021 · 3 comments
Open

Add support for static accessor operator (::) #700

cybersonic opened this issue Jan 27, 2021 · 3 comments

Comments

@cybersonic
Copy link

Lucee allows the ability to have static functions in components, i.e. calling a function without having to instantiate the Component itself (see https://docs.lucee.org/guides/cookbooks/StaticScope.html )

The syntax breaks CFLint parsing and brings false positives in parsing:

<cfscript>
isValid = com.domain.services.Service::isUserValid(userid);
</cfscript>

This throws a:
Critical: End of statement(;) expected after Service

error

@KamasamaK
Copy link
Collaborator

@cybersonic
Copy link
Author

Cool, so it is not just Lucee then. Great!

@KamasamaK KamasamaK changed the title Allow parsing of Lucee Static Components Allow parsing of Static Components Feb 22, 2021
@zspitzer
Copy link

The latest Lucee 5.3.8 also supports calling static functions via dot syntax
https://luceeserver.atlassian.net/browse/LDEV-3334

@KamasamaK KamasamaK changed the title Allow parsing of Static Components Add support for static accessor operator (::) Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants