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

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

Issue 1619253003: Include explicit constructors and static methods into UnlinkedPublicName (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
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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 case ReferenceKind.classOrEnum: 623 case ReferenceKind.classOrEnum:
624 return new ClassElementHandle(summaryResynthesizer, location); 624 return new ClassElementHandle(summaryResynthesizer, location);
625 case ReferenceKind.typedef: 625 case ReferenceKind.typedef:
626 return new FunctionTypeAliasElementHandle( 626 return new FunctionTypeAliasElementHandle(
627 summaryResynthesizer, location); 627 summaryResynthesizer, location);
628 case ReferenceKind.topLevelFunction: 628 case ReferenceKind.topLevelFunction:
629 return new FunctionElementHandle(summaryResynthesizer, location); 629 return new FunctionElementHandle(summaryResynthesizer, location);
630 case ReferenceKind.topLevelPropertyAccessor: 630 case ReferenceKind.topLevelPropertyAccessor:
631 return new PropertyAccessorElementHandle( 631 return new PropertyAccessorElementHandle(
632 summaryResynthesizer, location); 632 summaryResynthesizer, location);
633 case ReferenceKind.constructor:
634 case ReferenceKind.staticMethod:
633 case ReferenceKind.prefix: 635 case ReferenceKind.prefix:
634 case ReferenceKind.unresolved: 636 case ReferenceKind.unresolved:
635 // Should never happen. Exported names never refer to import prefixes, 637 // Should never happen. Exported names never refer to import prefixes,
636 // and they always refer to defined entities. 638 // and they always refer to defined entities.
Paul Berry 2016/01/25 13:10:04 s/defined entities/defined top level entities/
scheglov 2016/01/25 17:27:09 Done.
637 throw new StateError('Unexpected export name kind: ${exportName.kind}'); 639 throw new StateError('Unexpected export name kind: ${exportName.kind}');
638 } 640 }
639 } 641 }
640 642
641 /** 643 /**
642 * Build the export namespace for the library by aggregating together its 644 * Build the export namespace for the library by aggregating together its
643 * [publicNamespace] and [exportNames]. 645 * [publicNamespace] and [exportNames].
644 */ 646 */
645 Namespace buildExportNamespace( 647 Namespace buildExportNamespace(
646 Namespace publicNamespace, List<LinkedExportName> exportNames) { 648 Namespace publicNamespace, List<LinkedExportName> exportNames) {
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 for (PropertyAccessorElementImpl accessor in unit.accessors) { 1204 for (PropertyAccessorElementImpl accessor in unit.accessors) {
1203 elementMap[accessor.identifier] = accessor; 1205 elementMap[accessor.identifier] = accessor;
1204 } 1206 }
1205 resummarizedElements[absoluteUri] = elementMap; 1207 resummarizedElements[absoluteUri] = elementMap;
1206 unitHolder = null; 1208 unitHolder = null;
1207 linkedUnit = null; 1209 linkedUnit = null;
1208 unlinkedUnit = null; 1210 unlinkedUnit = null;
1209 linkedTypeMap = null; 1211 linkedTypeMap = null;
1210 } 1212 }
1211 } 1213 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698