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

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

Issue 1629403005: Fix for build: include ReferenceKind.constField case. (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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 return new ClassElementHandle(summaryResynthesizer, location); 635 return new ClassElementHandle(summaryResynthesizer, location);
636 case ReferenceKind.typedef: 636 case ReferenceKind.typedef:
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.staticMethod: 646 case ReferenceKind.staticMethod:
646 case ReferenceKind.prefix: 647 case ReferenceKind.prefix:
647 case ReferenceKind.unresolved: 648 case ReferenceKind.unresolved:
648 // Should never happen. Exported names never refer to import prefixes, 649 // Should never happen. Exported names never refer to import prefixes,
649 // and they always refer to defined top-level entities. 650 // and they always refer to defined top-level entities.
650 throw new StateError('Unexpected export name kind: ${exportName.kind}'); 651 throw new StateError('Unexpected export name kind: ${exportName.kind}');
651 } 652 }
652 } 653 }
653 654
654 /** 655 /**
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 for (PropertyAccessorElementImpl accessor in unit.accessors) { 1216 for (PropertyAccessorElementImpl accessor in unit.accessors) {
1216 elementMap[accessor.identifier] = accessor; 1217 elementMap[accessor.identifier] = accessor;
1217 } 1218 }
1218 resummarizedElements[absoluteUri] = elementMap; 1219 resummarizedElements[absoluteUri] = elementMap;
1219 unitHolder = null; 1220 unitHolder = null;
1220 linkedUnit = null; 1221 linkedUnit = null;
1221 unlinkedUnit = null; 1222 unlinkedUnit = null;
1222 linkedTypeMap = null; 1223 linkedTypeMap = null;
1223 } 1224 }
1224 } 1225 }
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