aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-07 03:05:04 (EDT)
committerzzhongwei2012-08-07 03:05:04 (EDT)
commit4924faf739b78320f27d81009c4d1044938debd3 (patch)
tree34a9dd3ad39d78cf9dafd96b6ca7fca835040fed
parent7f10b9e54911da1b7ec220d86333eef301fc5896 (diff)
downloadorg.eclipse.pdt-4924faf739b78320f27d81009c4d1044938debd3.zip
org.eclipse.pdt-4924faf739b78320f27d81009c4d1044938debd3.tar.gz
org.eclipse.pdt-4924faf739b78320f27d81009c4d1044938debd3.tar.bz2
add static modifier to anonymous function
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/compiler/PHPSourceElementRequestor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/compiler/PHPSourceElementRequestor.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/compiler/PHPSourceElementRequestor.java
index f65b52b..f23c89f 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/compiler/PHPSourceElementRequestor.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/compiler/PHPSourceElementRequestor.java
@@ -207,6 +207,9 @@ public class PHPSourceElementRequestor extends SourceElementRequestVisitor {
mi.parameterNames = parameters;
mi.name = PHPCoreConstants.ANONYMOUS;
mi.modifiers = Modifiers.AccPublic;
+ if (lambdaMethod.isStatic()) {
+ mi.modifiers |= Modifiers.AccStatic;
+ }
mi.nameSourceStart = lambdaMethod.sourceStart();
mi.nameSourceEnd = lambdaMethod.sourceEnd();
mi.declarationStart = mi.nameSourceStart;