99100101102103104105106107108109
PHPMethodDeclaration phpMethod = (PHPMethodDeclaration) s; if (inTwigExtension&& phpMethod.getName().equals(TwigCoreConstants.GET_FILTERS)) { phpMethod.traverse(new PHPASTVisitor() { @Override public boolean visit(ArrayElement s) throws Exception {
159160161162163164165166167168169
} }); } else if (inTwigExtension && TwigCoreConstants.GET_TESTS.equals(s.getName())) { phpMethod.traverse(new PHPASTVisitor() { @Override public boolean visit(ArrayElement s) throws Exception {
203204205206207208209210211212213
} }); } else if (inTwigExtension&& TwigCoreConstants.GET_FUNCTIONS.equals(s.getName())) { phpMethod.traverse(new PHPASTVisitor() { @Override public boolean visit(ArrayElement s) throws Exception {
258259260261262263264265266267268
inTagParseMethod = true; } else if (inTokenParser && TwigCoreConstants.PARSE_GET_TAG_METHOD.equals(s.getName())) { phpMethod.traverse(new PHPASTVisitor() { @Override public boolean visit(ReturnStatement s) throws Exception { if (s.getExpr().getClass() == Scalar.class) {