| Index: pkg/analyzer/lib/src/dart/element/builder.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/element/builder.dart b/pkg/analyzer/lib/src/dart/element/builder.dart
|
| index e531a68c5a6c20efdf4808a33060e8f764322bbd..3b09bef1124ef44017a358ce4f1c2baa5890de48 100644
|
| --- a/pkg/analyzer/lib/src/dart/element/builder.dart
|
| +++ b/pkg/analyzer/lib/src/dart/element/builder.dart
|
| @@ -350,6 +350,13 @@ class ElementBuilder extends RecursiveAstVisitor<Object> {
|
| _currentHolder = initialHolder;
|
| }
|
|
|
| + /**
|
| + * Prepares for incremental resolution of a function body.
|
| + */
|
| + void initForFunctionBodyIncrementalResolution() {
|
| + _inFunction = true;
|
| + }
|
| +
|
| @override
|
| Object visitAnnotation(Annotation node) {
|
| // Although it isn't valid to do so because closures are not constant
|
| @@ -445,19 +452,6 @@ class ElementBuilder extends RecursiveAstVisitor<Object> {
|
| return null;
|
| }
|
|
|
| - /**
|
| - * Implementation of this method should be synchronized with
|
| - * [visitClassDeclaration].
|
| - */
|
| - void visitClassDeclarationIncrementally(ClassDeclaration node) {
|
| - //
|
| - // Process field declarations before constructors and methods so that field
|
| - // formal parameters can be correctly resolved to their fields.
|
| - //
|
| - ClassElement classElement = node.element;
|
| - _buildFieldMap(classElement.fields);
|
| - }
|
| -
|
| @override
|
| Object visitClassTypeAlias(ClassTypeAlias node) {
|
| ElementHolder holder = new ElementHolder();
|
|
|