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

Side by Side Diff: tests/compiler/dart2js/semantic_visitor_test.dart

Issue 1161823004: Handle .fromEnvironment and incompatible constructor invocations (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Change handling of incompatible redirecting factories. Created 5 years, 6 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 dart2js.semantics_visitor_test; 5 library dart2js.semantics_visitor_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:mirrors'; 8 import 'dart:mirrors';
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 VISIT_UNRESOLVED_SUPER_SETTER_COMPOUND_INDEX_SET, 615 VISIT_UNRESOLVED_SUPER_SETTER_COMPOUND_INDEX_SET,
616 616
617 VISIT_ASSERT, 617 VISIT_ASSERT,
618 VISIT_LOGICAL_AND, 618 VISIT_LOGICAL_AND,
619 VISIT_LOGICAL_OR, 619 VISIT_LOGICAL_OR,
620 VISIT_IS, 620 VISIT_IS,
621 VISIT_IS_NOT, 621 VISIT_IS_NOT,
622 VISIT_AS, 622 VISIT_AS,
623 623
624 VISIT_CONST_CONSTRUCTOR_INVOKE, 624 VISIT_CONST_CONSTRUCTOR_INVOKE,
625 VISIT_BOOL_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
626 VISIT_INT_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
627 VISIT_STRING_FROM_ENVIRONMENT_CONSTRUCTOR_INVOKE,
625 VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, 628 VISIT_GENERATIVE_CONSTRUCTOR_INVOKE,
626 VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, 629 VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE,
627 VISIT_FACTORY_CONSTRUCTOR_INVOKE, 630 VISIT_FACTORY_CONSTRUCTOR_INVOKE,
628 VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 631 VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
632 VISIT_CONSTRUCTOR_INCOMPATIBLE_INVOKE,
633 ERROR_NON_CONSTANT_CONSTRUCTOR_INVOKE,
629 634
630 VISIT_SUPER_CONSTRUCTOR_INVOKE, 635 VISIT_SUPER_CONSTRUCTOR_INVOKE,
631 VISIT_IMPLICIT_SUPER_CONSTRUCTOR_INVOKE, 636 VISIT_IMPLICIT_SUPER_CONSTRUCTOR_INVOKE,
632 VISIT_THIS_CONSTRUCTOR_INVOKE, 637 VISIT_THIS_CONSTRUCTOR_INVOKE,
633 VISIT_FIELD_INITIALIZER, 638 VISIT_FIELD_INITIALIZER,
634 639
635 VISIT_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE, 640 VISIT_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE,
636 VISIT_UNRESOLVED_CONSTRUCTOR_INVOKE, 641 VISIT_UNRESOLVED_CONSTRUCTOR_INVOKE,
637 VISIT_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, 642 VISIT_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE,
638 VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 643 VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
(...skipping 17 matching lines...) Expand all
656 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, 661 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL,
657 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, 662 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL,
658 VISIT_NAMED_INITIALIZING_FORMAL_DECL, 663 VISIT_NAMED_INITIALIZING_FORMAL_DECL,
659 664
660 VISIT_UNRESOLVED_COMPOUND, 665 VISIT_UNRESOLVED_COMPOUND,
661 VISIT_UNRESOLVED_PREFIX, 666 VISIT_UNRESOLVED_PREFIX,
662 VISIT_UNRESOLVED_POSTFIX, 667 VISIT_UNRESOLVED_POSTFIX,
663 668
664 // TODO(johnniwinther): Add tests for more error cases. 669 // TODO(johnniwinther): Add tests for more error cases.
665 } 670 }
OLDNEW
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698