Expression Language support #1654
Open
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Added support for Expression Language component (https://symfony.com/doc/current/components/expression_language.html)
TODO
Auto inject expression language into:
\Symfony\Component\ExpressionLanguage\ExpressionLanguage::{evaluate,compile,parse}
\Symfony\Component\ExpressionLanguage\Expression::__construct
https://symfony.com/doc/current/reference/twig_reference.html#expressionMissing PsiLanguageInjectionHost impl. on TwigCompositeElement
Note for reviewers
Expression Language parser
fr.adrienbrault.idea.symfony2plugin.expressionLanguage
packageExpressionLanguage.bnf
andExpressionLanguage.flex
files as part of the plugin build process using https://github.com/JetBrains/gradle-grammar-kit-pluginLanguage Injections
fr.adrienbrault.idea.symfony2plugin.lang.ParameterLanguageInjector
in favour offr.adrienbrault.idea.symfony2plugin.lang.StringLiteralLanguageInjector
StringLiteralLanguageInjector
allows inject language into string literals used in various contexts: Attributes, Annotations, Constructor/Function/Method call argument, Variable assigment and also takes into account named arguments introduced in PHP 8YamlLanguageInjector
/XmlLanguageInjector
Links