mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
SSR: don't forget unmatched class content (Java)
This commit is contained in:
+1
-1
@@ -368,7 +368,7 @@ public class JavaCompilingVisitor extends JavaRecursiveElementWalkingVisitor {
|
||||
String name = CompiledPattern.ALL_CLASS_UNMATCHED_CONTENT_VAR_ARTIFICIAL_NAME;
|
||||
psiClass.putUserData(JavaCompiledPattern.ALL_CLASS_CONTENT_VAR_NAME_KEY, name);
|
||||
MatchOptions options = myCompilingVisitor.getContext().getOptions();
|
||||
if (options.getVariableConstraint(name) == null) {
|
||||
if (pattern.getHandler(name) == null) {
|
||||
pattern.createSubstitutionHandler(name, name, false, 0, Integer.MAX_VALUE, true);
|
||||
MatchVariableConstraint constraint = new MatchVariableConstraint(true);
|
||||
constraint.setName(name);
|
||||
|
||||
Reference in New Issue
Block a user