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

Side by Side Diff: pkg/analyzer/lib/src/summary/resynthesize.dart

Issue 1640383002: Fix build: Add 'ReferenceKind.length' to the switch. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library summary_resynthesizer; 5 library summary_resynthesizer;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 return new FunctionTypeAliasElementHandle( 637 return new FunctionTypeAliasElementHandle(
638 summaryResynthesizer, location); 638 summaryResynthesizer, location);
639 case ReferenceKind.topLevelFunction: 639 case ReferenceKind.topLevelFunction:
640 return new FunctionElementHandle(summaryResynthesizer, location); 640 return new FunctionElementHandle(summaryResynthesizer, location);
641 case ReferenceKind.topLevelPropertyAccessor: 641 case ReferenceKind.topLevelPropertyAccessor:
642 return new PropertyAccessorElementHandle( 642 return new PropertyAccessorElementHandle(
643 summaryResynthesizer, location); 643 summaryResynthesizer, location);
644 case ReferenceKind.constructor: 644 case ReferenceKind.constructor:
645 case ReferenceKind.constField: 645 case ReferenceKind.constField:
646 case ReferenceKind.staticMethod: 646 case ReferenceKind.staticMethod:
647 case ReferenceKind.length:
647 case ReferenceKind.prefix: 648 case ReferenceKind.prefix:
648 case ReferenceKind.unresolved: 649 case ReferenceKind.unresolved:
649 // Should never happen. Exported names never refer to import prefixes, 650 // Should never happen. Exported names never refer to import prefixes,
650 // and they always refer to defined top-level entities. 651 // and they always refer to defined top-level entities.
651 throw new StateError('Unexpected export name kind: ${exportName.kind}'); 652 throw new StateError('Unexpected export name kind: ${exportName.kind}');
652 } 653 }
653 } 654 }
654 655
655 /** 656 /**
656 * Build the export namespace for the library by aggregating together its 657 * Build the export namespace for the library by aggregating together its
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 for (PropertyAccessorElementImpl accessor in unit.accessors) { 1217 for (PropertyAccessorElementImpl accessor in unit.accessors) {
1217 elementMap[accessor.identifier] = accessor; 1218 elementMap[accessor.identifier] = accessor;
1218 } 1219 }
1219 resummarizedElements[absoluteUri] = elementMap; 1220 resummarizedElements[absoluteUri] = elementMap;
1220 unitHolder = null; 1221 unitHolder = null;
1221 linkedUnit = null; 1222 linkedUnit = null;
1222 unlinkedUnit = null; 1223 unlinkedUnit = null;
1223 linkedTypeMap = null; 1224 linkedTypeMap = null;
1224 } 1225 }
1225 } 1226 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698