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

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart

Issue 2762863002: Issue 28580. Relax instantiate to bounds. (Closed)
Patch Set: Created 3 years, 9 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analyzer/context/declared_variables.dart'; 5 import 'package:analyzer/context/declared_variables.dart';
6 import 'package:analyzer/dart/ast/ast.dart'; 6 import 'package:analyzer/dart/ast/ast.dart';
7 import 'package:analyzer/dart/ast/visitor.dart'; 7 import 'package:analyzer/dart/ast/visitor.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/error/error.dart'; 9 import 'package:analyzer/error/error.dart';
10 import 'package:analyzer/error/listener.dart'; 10 import 'package:analyzer/error/listener.dart';
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 if (!e.isSynthetic) { 506 if (!e.isSynthetic) {
507 e.type; 507 e.type;
508 } 508 }
509 } 509 }
510 510
511 new DeclarationResolver().resolve(unit, unitElement); 511 new DeclarationResolver().resolve(unit, unitElement);
512 512
513 // TODO(scheglov) remove EnumMemberBuilder class 513 // TODO(scheglov) remove EnumMemberBuilder class
514 514
515 new TypeParameterBoundsResolver( 515 new TypeParameterBoundsResolver(
516 _typeProvider, _libraryElement, source, errorListener) 516 _context.typeSystem, _libraryElement, source, errorListener)
517 .resolveTypeBounds(unit); 517 .resolveTypeBounds(unit);
518 518
519 unit.accept(new TypeResolverVisitor( 519 unit.accept(new TypeResolverVisitor(
520 _libraryElement, source, _typeProvider, errorListener)); 520 _libraryElement, source, _typeProvider, errorListener));
521 521
522 LibraryScope libraryScope = new LibraryScope(_libraryElement); 522 LibraryScope libraryScope = new LibraryScope(_libraryElement);
523 unit.accept(new VariableResolverVisitor( 523 unit.accept(new VariableResolverVisitor(
524 _libraryElement, source, _typeProvider, errorListener, 524 _libraryElement, source, _typeProvider, errorListener,
525 nameScope: libraryScope)); 525 nameScope: libraryScope));
526 526
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 } 761 }
762 762
763 /** 763 /**
764 * Either the name or the source associated with a part-of directive. 764 * Either the name or the source associated with a part-of directive.
765 */ 765 */
766 class _NameOrSource { 766 class _NameOrSource {
767 final String name; 767 final String name;
768 final Source source; 768 final Source source;
769 _NameOrSource(this.name, this.source); 769 _NameOrSource(this.name, this.source);
770 } 770 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/type.dart » ('j') | pkg/analyzer/lib/src/dart/element/type.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698