@Override public Iterator<Tree> childrenIterator() { return Iterators.concat( Iterators.singletonIterator(openCurlyBrace), properties.elementsAndSeparators(Functions.<Tree>identity()), Iterators.singletonIterator(closeCurlyBrace)); }
private void checkAngularModuleMethodCall(CallExpressionTree tree) { if (tree.callee().is(Kind.DOT_MEMBER_EXPRESSION)) { DotMemberExpressionTree callee = (DotMemberExpressionTree) tree.callee(); if (callee.object().types().contains(Type.Kind.ANGULAR_MODULE)) { SeparatedList<Tree> parameters = tree.arguments().parameters(); if (!parameters.isEmpty()) { Tree lastArgument = parameters.get(parameters.size() - 1); checkArrayLiteral(lastArgument); checkSimpleArgument(lastArgument); } } } }