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

Unified Diff: pkg/analyzer/lib/src/generated/static_type_analyzer.dart

Issue 2846883005: Rollback instrumentation during analysis and validate resolved ASTs instead. (Closed)
Patch Set: Created 3 years, 8 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/analyzer/lib/src/generated/static_type_analyzer.dart
diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
index d7eed746e551c3ffb2064e52e6b7d903716c1c86..1c5b9996a579c52c77f2cc605950147e4ee57ab8 100644
--- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
+++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
@@ -1333,11 +1333,6 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
} else if (element is VariableElement) {
VariableElement variable = element;
staticType = _promoteManager.getStaticType(variable);
- if (_resolver.instrumentation != null && node.inGetterContext()) {
- node.inGetterContext();
- DartType type = _promoteManager.getType(variable);
- _resolver.instrumentation.recordPromotion(node.offset, type);
- }
} else if (element is PrefixElement) {
return null;
} else if (element is DynamicElementImpl) {
@@ -2102,7 +2097,6 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
if (type != null && !type.isBottom && !type.isDartCoreNull) {
VariableElement element = node.element;
if (element is LocalVariableElementImpl) {
- _resolver.instrumentation?.recordInference(node.name.offset, type);
element.type = initializer.staticType;
node.name.staticType = initializer.staticType;
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/test/src/task/strong/front_end_inference_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698