Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart

Issue 2874033003: Set MethodInvocation.interfaceTarget during type inference. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
diff --git a/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart b/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
index ecc6981f11009cca976e9ac10a54ff891001b58b..c813ab8dd418d250dbaf3cbde916e66b31c3cfce 100644
--- a/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
+++ b/pkg/front_end/lib/src/fasta/testing/validating_instrumentation.dart
@@ -24,7 +24,8 @@ class ValidatingInstrumentation implements Instrumentation {
'typeArgs',
'promotedType',
'type',
- 'returnType'
+ 'returnType',
+ 'target',
],
};
@@ -176,7 +177,11 @@ class ValidatingInstrumentation implements Instrumentation {
}
String _escape(String s) {
- return s.replaceAll(r'\', r'\\').replaceAll('*/', r'*\/');
+ s = s.replaceAll(r'\', r'\\');
+ if (s.endsWith('/')) {
+ s = '$s ';
+ }
+ return s.replaceAll('/*', r'/\*').replaceAll('*/', r'*\/');
}
String _formatProblem(

Powered by Google App Engine
This is Rietveld 408576698