- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for locationForUsage (0.15 sec)
-
platforms/ide/problems-api/src/main/java/org/gradle/internal/problems/ProblemLocationAnalyzer.java
/** * Calculates the location for a problem with the given stack. * @return A display name for the location or null for an unknown location. */ @Nullable Location locationForUsage(Failure failure, boolean fromException);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 17:15:42 UTC 2024 - 1.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy
then: diagnostics.exception == null assertIsCallerStackTrace(diagnostics.stack) diagnostics.location == location 1 * locationAnalyzer.locationForUsage(_, false) >> { Failure failure, b -> assertIsCallerStackTrace(failure.stackTrace) location } } def "uses caller provided exception factory to calculate problem location"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 17:15:42 UTC 2024 - 5.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemLocationAnalyzerTest.groovy
analyzer.childScopeCreated(Stub(ClassLoaderScopeId), Stub(ClassLoaderScopeId), new ClassLoaderScopeOrigin.Script("filename", longDisplayName, shortDisplayName)) when: def location = analyzer.locationForUsage(failure, false) then: location.sourceLongDisplayName == longDisplayName location.sourceShortDisplayName == shortDisplayName location.lineNumber == 7
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 17:15:42 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/ide/problems-api/src/main/java/org/gradle/internal/problems/DefaultProblemDiagnosticsFactory.java
if (throwable != null) { stackTrace = transformer.transform(throwable.getStackTrace()); stackTracingFailure = failureFactory.create(throwable); location = locationAnalyzer.locationForUsage(stackTracingFailure, fromException); } UserCodeSource source = applicationContext != null ? applicationContext.getSource() : null;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 08:13:26 UTC 2024 - 7.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/problems/DefaultProblemLocationAnalyzer.java
} @Override public Location locationForUsage(Failure failure, boolean fromException) { List<StackTraceElement> stack = failure.getStackTrace(); int startPos; int endPos; if (fromException) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 17:15:42 UTC 2024 - 5.5K bytes - Viewed (0)