Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for getStatement (0.12 sec)

  1. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandlerTest.groovy

                    return Phases.CANONICALIZATION
                }
    
                @Override
                void call(SourceUnit source) throws CompilationFailedException {
                    source.getAST().getStatementBlock().getStatements().clear()
                }
            }
    
            def transformer = new CompileOperation<String>() {
                @Override
                String getId() {
                    return "id"
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 08:24:10 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/ExpressionReplacingVisitorSupport.java

            replacementExpr = other;
        }
    
        @Override
        @SuppressWarnings("unchecked")
        public void visitBlockStatement(BlockStatement stat) {
            replaceAll(stat.getStatements());
        }
    
        @Override
        public void visitForLoop(ForStatement stat) {
            stat.setCollectionExpression(replaceExpr(stat.getCollectionExpression()));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

                }
                emptyScript = isEmpty(source);
            }
    
            private boolean isEmpty(SourceUnit source) {
                List<Statement> statements = source.getAST().getStatementBlock().getStatements();
                for (Statement statement : statements) {
                    if (AstUtils.mayHaveAnEffect(statement)) {
                        return false;
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top