- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for applyChangeAt (0.27 sec)
-
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/mutator/AbstractGroovySourceFileMutator.groovy
if (insertPos < 0 || isClassClosing) { throw new IllegalArgumentException("Cannot parse source file $sourceFile to apply changes") } applyChangeAt(context, text, insertPos) } protected abstract void applyChangeAt(BuildContext context, StringBuilder text, int lastMethodEndPos)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.6K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/mutator/ApplyNonAbiChangeToGroovySourceFileMutator.groovy
class ApplyNonAbiChangeToGroovySourceFileMutator extends AbstractGroovySourceFileMutator { ApplyNonAbiChangeToGroovySourceFileMutator(File sourceFile) { super(sourceFile) } @Override protected void applyChangeAt(BuildContext context, StringBuilder text, int lastMethodEndPos) { text.insert(lastMethodEndPos, "System.out.println(\"${context.getUniqueBuildId()}\");") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.1K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/mutator/ApplyAbiChangeToGroovySourceFileMutator.groovy
class ApplyAbiChangeToGroovySourceFileMutator extends AbstractGroovySourceFileMutator { ApplyAbiChangeToGroovySourceFileMutator(File sourceFile) { super(sourceFile) } @Override protected void applyChangeAt(BuildContext context, StringBuilder text, int lastMethodEndPos) { String method = "_m${context.getUniqueBuildId()}()" text.insert(lastMethodEndPos + 1, "\npublic void $method { }")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.2K bytes - Viewed (0)