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

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

Issue 2425853003: Begin separating API and local element builders. (Closed)
Patch Set: Don't visit function bodies in ApiElementBuilder. Created 4 years, 2 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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/builder.dart ('k') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index d9dd238ffc742a17039405ce7c3886eab33f51dd..fcba8326d68e0327234b5b461531f29b6f02fc5c 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -6557,6 +6557,9 @@ class ResolverVisitor extends ScopedVisitor {
* cannot be computed from the declared return type, return null.
*/
DartType _computeReturnOrYieldType(DartType declaredType) {
+ if (_enclosingFunction == null) {
+ print('aaa');
Brian Wilkerson 2016/10/18 00:18:29 I assume this is debugging code that should be rem
scheglov 2016/10/18 01:50:58 Acknowledged.
+ }
bool isGenerator = _enclosingFunction.isGenerator;
bool isAsynchronous = _enclosingFunction.isAsynchronous;
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/builder.dart ('k') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698