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

Side by Side Diff: pkg/compiler/lib/src/resolution/semantic_visitor.dart

Issue 1146973002: Rename remaining runtime-error methods from errorX to visitX. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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; 5 library dart2js.semantics_visitor;
6 6
7 import '../constants/expressions.dart'; 7 import '../constants/expressions.dart';
8 import '../dart2jslib.dart' show invariant, MessageKind; 8 import '../dart2jslib.dart' show invariant, MessageKind;
9 import '../dart_types.dart'; 9 import '../dart_types.dart';
10 import '../elements/elements.dart'; 10 import '../elements/elements.dart';
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 Node rhs, 168 Node rhs,
169 A arg); 169 A arg);
170 170
171 /// Assignment of [rhs] to the final [parameter]. 171 /// Assignment of [rhs] to the final [parameter].
172 /// 172 ///
173 /// For instance: 173 /// For instance:
174 /// m(final parameter) { 174 /// m(final parameter) {
175 /// parameter = rhs; 175 /// parameter = rhs;
176 /// } 176 /// }
177 /// 177 ///
178 R errorFinalParameterSet( 178 R visitFinalParameterSet(
179 SendSet node, 179 SendSet node,
180 ParameterElement parameter, 180 ParameterElement parameter,
181 Node rhs, 181 Node rhs,
182 A arg); 182 A arg);
183 183
184 /// Invocation of the [parameter] with [arguments]. 184 /// Invocation of the [parameter] with [arguments].
185 /// 185 ///
186 /// For instance: 186 /// For instance:
187 /// m(parameter) { 187 /// m(parameter) {
188 /// parameter(null, 42); 188 /// parameter(null, 42);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 A arg); 223 A arg);
224 224
225 /// Assignment of [rhs] to the final local [variable]. 225 /// Assignment of [rhs] to the final local [variable].
226 /// 226 ///
227 /// For instance: 227 /// For instance:
228 /// m() { 228 /// m() {
229 /// final variable = null; 229 /// final variable = null;
230 /// variable = rhs; 230 /// variable = rhs;
231 /// } 231 /// }
232 /// 232 ///
233 R errorFinalLocalVariableSet( 233 R visitFinalLocalVariableSet(
234 SendSet node, 234 SendSet node,
235 LocalVariableElement variable, 235 LocalVariableElement variable,
236 Node rhs, 236 Node rhs,
237 A arg); 237 A arg);
238 238
239 /// Invocation of the local variable [variable] with [arguments]. 239 /// Invocation of the local variable [variable] with [arguments].
240 /// 240 ///
241 /// For instance: 241 /// For instance:
242 /// m() { 242 /// m() {
243 /// var variable; 243 /// var variable;
(...skipping 21 matching lines...) Expand all
265 A arg); 265 A arg);
266 266
267 /// Assignment of [rhs] to the local [function]. 267 /// Assignment of [rhs] to the local [function].
268 /// 268 ///
269 /// For instance: 269 /// For instance:
270 /// m() { 270 /// m() {
271 /// o(a, b) {} 271 /// o(a, b) {}
272 /// o = rhs; 272 /// o = rhs;
273 /// } 273 /// }
274 /// 274 ///
275 R errorLocalFunctionSet( 275 R visitLocalFunctionSet(
276 SendSet node, 276 SendSet node,
277 LocalFunctionElement function, 277 LocalFunctionElement function,
278 Node rhs, 278 Node rhs,
279 A arg); 279 A arg);
280 280
281 /// Invocation of the local [function] with [arguments]. 281 /// Invocation of the local [function] with [arguments].
282 /// 282 ///
283 /// For instance: 283 /// For instance:
284 /// m() { 284 /// m() {
285 /// o(a, b) {} 285 /// o(a, b) {}
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 /// Assignment of [rhs] to the final static [field]. 450 /// Assignment of [rhs] to the final static [field].
451 /// 451 ///
452 /// For instance 452 /// For instance
453 /// class B { 453 /// class B {
454 /// final foo = null; 454 /// final foo = null;
455 /// } 455 /// }
456 /// class C extends B { 456 /// class C extends B {
457 /// m() { super.foo = rhs; } 457 /// m() { super.foo = rhs; }
458 /// } 458 /// }
459 /// 459 ///
460 R errorFinalSuperFieldSet( 460 R visitFinalSuperFieldSet(
461 SendSet node, 461 SendSet node,
462 FieldElement field, 462 FieldElement field,
463 Node rhs, 463 Node rhs,
464 A arg); 464 A arg);
465 465
466 /// Invocation of the super [field] with [arguments]. 466 /// Invocation of the super [field] with [arguments].
467 /// 467 ///
468 /// For instance 468 /// For instance
469 /// class B { 469 /// class B {
470 /// var foo; 470 /// var foo;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 /// Assignment of [rhs] to the super [method]. 532 /// Assignment of [rhs] to the super [method].
533 /// 533 ///
534 /// For instance 534 /// For instance
535 /// class B { 535 /// class B {
536 /// foo(a, b) {} 536 /// foo(a, b) {}
537 /// } 537 /// }
538 /// class C extends B { 538 /// class C extends B {
539 /// m() { super.foo = rhs; } 539 /// m() { super.foo = rhs; }
540 /// } 540 /// }
541 /// 541 ///
542 R errorSuperMethodSet( 542 R visitSuperMethodSet(
543 Send node, 543 Send node,
544 MethodElement method, 544 MethodElement method,
545 Node rhs, 545 Node rhs,
546 A arg); 546 A arg);
547 547
548 /// Getter call to the super [getter]. 548 /// Getter call to the super [getter].
549 /// 549 ///
550 /// For instance 550 /// For instance
551 /// class B { 551 /// class B {
552 /// get foo => null; 552 /// get foo => null;
(...skipping 10 matching lines...) Expand all
563 /// Getter call the super [setter]. 563 /// Getter call the super [setter].
564 /// 564 ///
565 /// For instance 565 /// For instance
566 /// class B { 566 /// class B {
567 /// set foo(_) {} 567 /// set foo(_) {}
568 /// } 568 /// }
569 /// class C extends B { 569 /// class C extends B {
570 /// m() => super.foo; 570 /// m() => super.foo;
571 /// } 571 /// }
572 /// 572 ///
573 R errorSuperSetterGet( 573 R visitSuperSetterGet(
574 Send node, 574 Send node,
575 FunctionElement setter, 575 FunctionElement setter,
576 A arg); 576 A arg);
577 577
578 /// Setter call to the super [setter]. 578 /// Setter call to the super [setter].
579 /// 579 ///
580 /// For instance 580 /// For instance
581 /// class B { 581 /// class B {
582 /// set foo(_) {} 582 /// set foo(_) {}
583 /// } 583 /// }
(...skipping 10 matching lines...) Expand all
594 /// Assignment of [rhs] to the super [getter]. 594 /// Assignment of [rhs] to the super [getter].
595 /// 595 ///
596 /// For instance 596 /// For instance
597 /// class B { 597 /// class B {
598 /// get foo => null; 598 /// get foo => null;
599 /// } 599 /// }
600 /// class C extends B { 600 /// class C extends B {
601 /// m() { super.foo = rhs; } 601 /// m() { super.foo = rhs; }
602 /// } 602 /// }
603 /// 603 ///
604 R errorSuperGetterSet( 604 R visitSuperGetterSet(
605 SendSet node, 605 SendSet node,
606 FunctionElement getter, 606 FunctionElement getter,
607 Node rhs, 607 Node rhs,
608 A arg); 608 A arg);
609 609
610 /// Invocation of the super [getter] with [arguments]. 610 /// Invocation of the super [getter] with [arguments].
611 /// 611 ///
612 /// For instance 612 /// For instance
613 /// class B { 613 /// class B {
614 /// get foo => null; 614 /// get foo => null;
(...skipping 12 matching lines...) Expand all
627 /// Invocation of the super [setter] with [arguments]. 627 /// Invocation of the super [setter] with [arguments].
628 /// 628 ///
629 /// For instance 629 /// For instance
630 /// class B { 630 /// class B {
631 /// set foo(_) {} 631 /// set foo(_) {}
632 /// } 632 /// }
633 /// class C extends B { 633 /// class C extends B {
634 /// m() { super.foo(null, 42; } 634 /// m() { super.foo(null, 42; }
635 /// } 635 /// }
636 /// 636 ///
637 R errorSuperSetterInvoke( 637 R visitSuperSetterInvoke(
638 Send node, 638 Send node,
639 FunctionElement setter, 639 FunctionElement setter,
640 NodeList arguments, 640 NodeList arguments,
641 CallStructure callStructure, 641 CallStructure callStructure,
642 A arg); 642 A arg);
643 643
644 /// Invocation of a [expression] with [arguments]. 644 /// Invocation of a [expression] with [arguments].
645 /// 645 ///
646 /// For instance 646 /// For instance
647 /// m() => (a, b){}(null, 42); 647 /// m() => (a, b){}(null, 42);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 A arg); 681 A arg);
682 682
683 /// Assignment of [rhs] to the final static [field]. 683 /// Assignment of [rhs] to the final static [field].
684 /// 684 ///
685 /// For instance 685 /// For instance
686 /// class C { 686 /// class C {
687 /// static final foo; 687 /// static final foo;
688 /// } 688 /// }
689 /// m() { C.foo = rhs; } 689 /// m() { C.foo = rhs; }
690 /// 690 ///
691 R errorFinalStaticFieldSet( 691 R visitFinalStaticFieldSet(
692 SendSet node, 692 SendSet node,
693 FieldElement field, 693 FieldElement field,
694 Node rhs, 694 Node rhs,
695 A arg); 695 A arg);
696 696
697 /// Invocation of the static [field] with [arguments]. 697 /// Invocation of the static [field] with [arguments].
698 /// 698 ///
699 /// For instance 699 /// For instance
700 /// class C { 700 /// class C {
701 /// static var foo; 701 /// static var foo;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 A arg); 753 A arg);
754 754
755 /// Assignment of [rhs] to the static [function]. 755 /// Assignment of [rhs] to the static [function].
756 /// 756 ///
757 /// For instance 757 /// For instance
758 /// class C { 758 /// class C {
759 /// static foo(a, b) {} 759 /// static foo(a, b) {}
760 /// } 760 /// }
761 /// m() { C.foo = rhs; } 761 /// m() { C.foo = rhs; }
762 /// 762 ///
763 R errorStaticFunctionSet( 763 R visitStaticFunctionSet(
764 Send node, 764 Send node,
765 MethodElement function, 765 MethodElement function,
766 Node rhs, 766 Node rhs,
767 A arg); 767 A arg);
768 768
769 /// Getter call to the static [getter]. 769 /// Getter call to the static [getter].
770 /// 770 ///
771 /// For instance 771 /// For instance
772 /// class C { 772 /// class C {
773 /// static get foo => null; 773 /// static get foo => null;
774 /// } 774 /// }
775 /// m() => C.foo; 775 /// m() => C.foo;
776 /// 776 ///
777 R visitStaticGetterGet( 777 R visitStaticGetterGet(
778 Send node, 778 Send node,
779 FunctionElement getter, 779 FunctionElement getter,
780 A arg); 780 A arg);
781 781
782 /// Getter call the static [setter]. 782 /// Getter call the static [setter].
783 /// 783 ///
784 /// For instance 784 /// For instance
785 /// class C { 785 /// class C {
786 /// static set foo(_) {} 786 /// static set foo(_) {}
787 /// } 787 /// }
788 /// m() => C.foo; 788 /// m() => C.foo;
789 /// 789 ///
790 R errorStaticSetterGet( 790 R visitStaticSetterGet(
791 Send node, 791 Send node,
792 FunctionElement setter, 792 FunctionElement setter,
793 A arg); 793 A arg);
794 794
795 /// Setter call to the static [setter]. 795 /// Setter call to the static [setter].
796 /// 796 ///
797 /// For instance 797 /// For instance
798 /// class C { 798 /// class C {
799 /// static set foo(_) {} 799 /// static set foo(_) {}
800 /// } 800 /// }
801 /// m() { C.foo = rhs; } 801 /// m() { C.foo = rhs; }
802 /// 802 ///
803 R visitStaticSetterSet( 803 R visitStaticSetterSet(
804 SendSet node, 804 SendSet node,
805 FunctionElement setter, 805 FunctionElement setter,
806 Node rhs, 806 Node rhs,
807 A arg); 807 A arg);
808 808
809 /// Assignment of [rhs] to the static [getter]. 809 /// Assignment of [rhs] to the static [getter].
810 /// 810 ///
811 /// For instance 811 /// For instance
812 /// class C { 812 /// class C {
813 /// static get foo => null; 813 /// static get foo => null;
814 /// } 814 /// }
815 /// m() { C.foo = rhs; } 815 /// m() { C.foo = rhs; }
816 /// 816 ///
817 R errorStaticGetterSet( 817 R visitStaticGetterSet(
818 SendSet node, 818 SendSet node,
819 FunctionElement getter, 819 FunctionElement getter,
820 Node rhs, 820 Node rhs,
821 A arg); 821 A arg);
822 822
823 /// Invocation of the static [getter] with [arguments]. 823 /// Invocation of the static [getter] with [arguments].
824 /// 824 ///
825 /// For instance 825 /// For instance
826 /// class C { 826 /// class C {
827 /// static get foo => null; 827 /// static get foo => null;
828 /// } 828 /// }
829 /// m() { C.foo(null, 42; } 829 /// m() { C.foo(null, 42; }
830 /// 830 ///
831 R visitStaticGetterInvoke( 831 R visitStaticGetterInvoke(
832 Send node, 832 Send node,
833 FunctionElement getter, 833 FunctionElement getter,
834 NodeList arguments, 834 NodeList arguments,
835 CallStructure callStructure, 835 CallStructure callStructure,
836 A arg); 836 A arg);
837 837
838 /// Invocation of the static [setter] with [arguments]. 838 /// Invocation of the static [setter] with [arguments].
839 /// 839 ///
840 /// For instance 840 /// For instance
841 /// class C { 841 /// class C {
842 /// static set foo(_) {} 842 /// static set foo(_) {}
843 /// } 843 /// }
844 /// m() { C.foo(null, 42; } 844 /// m() { C.foo(null, 42; }
845 /// 845 ///
846 R errorStaticSetterInvoke( 846 R visitStaticSetterInvoke(
847 Send node, 847 Send node,
848 FunctionElement setter, 848 FunctionElement setter,
849 NodeList arguments, 849 NodeList arguments,
850 CallStructure callStructure, 850 CallStructure callStructure,
851 A arg); 851 A arg);
852 852
853 /// Read of the top level [field]. 853 /// Read of the top level [field].
854 /// 854 ///
855 /// For instance 855 /// For instance
856 /// var foo; 856 /// var foo;
(...skipping 15 matching lines...) Expand all
872 FieldElement field, 872 FieldElement field,
873 Node rhs, 873 Node rhs,
874 A arg); 874 A arg);
875 875
876 /// Assignment of [rhs] to the final top level [field]. 876 /// Assignment of [rhs] to the final top level [field].
877 /// 877 ///
878 /// For instance 878 /// For instance
879 /// final foo = null; 879 /// final foo = null;
880 /// m() { foo = rhs; } 880 /// m() { foo = rhs; }
881 /// 881 ///
882 R errorFinalTopLevelFieldSet( 882 R visitFinalTopLevelFieldSet(
883 SendSet node, 883 SendSet node,
884 FieldElement field, 884 FieldElement field,
885 Node rhs, 885 Node rhs,
886 A arg); 886 A arg);
887 887
888 /// Invocation of the top level [field] with [arguments]. 888 /// Invocation of the top level [field] with [arguments].
889 /// 889 ///
890 /// For instance 890 /// For instance
891 /// var foo; 891 /// var foo;
892 /// m() { foo(null, 42); } 892 /// m() { foo(null, 42); }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 NodeList arguments, 936 NodeList arguments,
937 CallStructure callStructure, 937 CallStructure callStructure,
938 A arg); 938 A arg);
939 939
940 /// Assignment of [rhs] to the top level [function]. 940 /// Assignment of [rhs] to the top level [function].
941 /// 941 ///
942 /// For instance 942 /// For instance
943 /// foo(a, b) {}; 943 /// foo(a, b) {};
944 /// m() { foo = rhs; } 944 /// m() { foo = rhs; }
945 /// 945 ///
946 R errorTopLevelFunctionSet( 946 R visitTopLevelFunctionSet(
947 Send node, 947 Send node,
948 MethodElement function, 948 MethodElement function,
949 Node rhs, 949 Node rhs,
950 A arg); 950 A arg);
951 951
952 /// Getter call to the top level [getter]. 952 /// Getter call to the top level [getter].
953 /// 953 ///
954 /// For instance 954 /// For instance
955 /// get foo => null; 955 /// get foo => null;
956 /// m() => foo; 956 /// m() => foo;
957 /// 957 ///
958 R visitTopLevelGetterGet( 958 R visitTopLevelGetterGet(
959 Send node, 959 Send node,
960 FunctionElement getter, 960 FunctionElement getter,
961 A arg); 961 A arg);
962 962
963 /// Getter call the top level [setter]. 963 /// Getter call the top level [setter].
964 /// 964 ///
965 /// For instance 965 /// For instance
966 /// set foo(_) {} 966 /// set foo(_) {}
967 /// m() => foo; 967 /// m() => foo;
968 /// 968 ///
969 R errorTopLevelSetterGet( 969 R visitTopLevelSetterGet(
970 Send node, 970 Send node,
971 FunctionElement setter, 971 FunctionElement setter,
972 A arg); 972 A arg);
973 973
974 /// Setter call to the top level [setter]. 974 /// Setter call to the top level [setter].
975 /// 975 ///
976 /// For instance 976 /// For instance
977 /// set foo(_) {} 977 /// set foo(_) {}
978 /// m() { foo = rhs; } 978 /// m() { foo = rhs; }
979 /// 979 ///
980 R visitTopLevelSetterSet( 980 R visitTopLevelSetterSet(
981 SendSet node, 981 SendSet node,
982 FunctionElement setter, 982 FunctionElement setter,
983 Node rhs, 983 Node rhs,
984 A arg); 984 A arg);
985 985
986 /// Assignment of [rhs] to the top level [getter]. 986 /// Assignment of [rhs] to the top level [getter].
987 /// 987 ///
988 /// For instance 988 /// For instance
989 /// get foo => null; 989 /// get foo => null;
990 /// m() { foo = rhs; } 990 /// m() { foo = rhs; }
991 /// 991 ///
992 R errorTopLevelGetterSet( 992 R visitTopLevelGetterSet(
993 SendSet node, 993 SendSet node,
994 FunctionElement getter, 994 FunctionElement getter,
995 Node rhs, 995 Node rhs,
996 A arg); 996 A arg);
997 997
998 /// Invocation of the top level [getter] with [arguments]. 998 /// Invocation of the top level [getter] with [arguments].
999 /// 999 ///
1000 /// For instance 1000 /// For instance
1001 /// get foo => null; 1001 /// get foo => null;
1002 /// m() { foo(null, 42); } 1002 /// m() { foo(null, 42); }
1003 /// 1003 ///
1004 R visitTopLevelGetterInvoke( 1004 R visitTopLevelGetterInvoke(
1005 Send node, 1005 Send node,
1006 FunctionElement getter, 1006 FunctionElement getter,
1007 NodeList arguments, 1007 NodeList arguments,
1008 CallStructure callStructure, 1008 CallStructure callStructure,
1009 A arg); 1009 A arg);
1010 1010
1011 /// Invocation of the top level [setter] with [arguments]. 1011 /// Invocation of the top level [setter] with [arguments].
1012 /// 1012 ///
1013 /// For instance 1013 /// For instance
1014 /// set foo(_) {}; 1014 /// set foo(_) {};
1015 /// m() { foo(null, 42); } 1015 /// m() { foo(null, 42); }
1016 /// 1016 ///
1017 R errorTopLevelSetterInvoke( 1017 R visitTopLevelSetterInvoke(
1018 Send node, 1018 Send node,
1019 FunctionElement setter, 1019 FunctionElement setter,
1020 NodeList arguments, 1020 NodeList arguments,
1021 CallStructure callStructure, 1021 CallStructure callStructure,
1022 A arg); 1022 A arg);
1023 1023
1024 /// Read of the type literal for class [element]. 1024 /// Read of the type literal for class [element].
1025 /// 1025 ///
1026 /// For instance 1026 /// For instance
1027 /// class C {} 1027 /// class C {}
(...skipping 16 matching lines...) Expand all
1044 NodeList arguments, 1044 NodeList arguments,
1045 CallStructure callStructure, 1045 CallStructure callStructure,
1046 A arg); 1046 A arg);
1047 1047
1048 /// Assignment of [rhs] to the type literal for class [element]. 1048 /// Assignment of [rhs] to the type literal for class [element].
1049 /// 1049 ///
1050 /// For instance 1050 /// For instance
1051 /// class C {} 1051 /// class C {}
1052 /// m() { C = rhs; } 1052 /// m() { C = rhs; }
1053 /// 1053 ///
1054 R errorClassTypeLiteralSet( 1054 R visitClassTypeLiteralSet(
1055 SendSet node, 1055 SendSet node,
1056 ConstantExpression constant, 1056 ConstantExpression constant,
1057 Node rhs, 1057 Node rhs,
1058 A arg); 1058 A arg);
1059 1059
1060 /// Read of the type literal for typedef [element]. 1060 /// Read of the type literal for typedef [element].
1061 /// 1061 ///
1062 /// For instance 1062 /// For instance
1063 /// typedef F(); 1063 /// typedef F();
1064 /// m() => F; 1064 /// m() => F;
(...skipping 15 matching lines...) Expand all
1080 NodeList arguments, 1080 NodeList arguments,
1081 CallStructure callStructure, 1081 CallStructure callStructure,
1082 A arg); 1082 A arg);
1083 1083
1084 /// Assignment of [rhs] to the type literal for typedef [element]. 1084 /// Assignment of [rhs] to the type literal for typedef [element].
1085 /// 1085 ///
1086 /// For instance 1086 /// For instance
1087 /// typedef F(); 1087 /// typedef F();
1088 /// m() { F = rhs; } 1088 /// m() { F = rhs; }
1089 /// 1089 ///
1090 R errorTypedefTypeLiteralSet( 1090 R visitTypedefTypeLiteralSet(
1091 SendSet node, 1091 SendSet node,
1092 ConstantExpression constant, 1092 ConstantExpression constant,
1093 Node rhs, 1093 Node rhs,
1094 A arg); 1094 A arg);
1095 1095
1096 /// Read of the type literal for type variable [element]. 1096 /// Read of the type literal for type variable [element].
1097 /// 1097 ///
1098 /// For instance 1098 /// For instance
1099 /// class C<T> { 1099 /// class C<T> {
1100 /// m() => T; 1100 /// m() => T;
(...skipping 19 matching lines...) Expand all
1120 CallStructure callStructure, 1120 CallStructure callStructure,
1121 A arg); 1121 A arg);
1122 1122
1123 /// Assignment of [rhs] to the type literal for type variable [element]. 1123 /// Assignment of [rhs] to the type literal for type variable [element].
1124 /// 1124 ///
1125 /// For instance 1125 /// For instance
1126 /// class C<T> { 1126 /// class C<T> {
1127 /// m() { T = rhs; } 1127 /// m() { T = rhs; }
1128 /// } 1128 /// }
1129 /// 1129 ///
1130 R errorTypeVariableTypeLiteralSet( 1130 R visitTypeVariableTypeLiteralSet(
1131 SendSet node, 1131 SendSet node,
1132 TypeVariableElement element, 1132 TypeVariableElement element,
1133 Node rhs, 1133 Node rhs,
1134 A arg); 1134 A arg);
1135 1135
1136 /// Read of the type literal for `dynamic`. 1136 /// Read of the type literal for `dynamic`.
1137 /// 1137 ///
1138 /// For instance 1138 /// For instance
1139 /// m() => dynamic; 1139 /// m() => dynamic;
1140 /// 1140 ///
(...skipping 12 matching lines...) Expand all
1153 ConstantExpression constant, 1153 ConstantExpression constant,
1154 NodeList arguments, 1154 NodeList arguments,
1155 CallStructure callStructure, 1155 CallStructure callStructure,
1156 A arg); 1156 A arg);
1157 1157
1158 /// Assignment of [rhs] to the type literal for `dynamic`. 1158 /// Assignment of [rhs] to the type literal for `dynamic`.
1159 /// 1159 ///
1160 /// For instance 1160 /// For instance
1161 /// m() { dynamic = rhs; } 1161 /// m() { dynamic = rhs; }
1162 /// 1162 ///
1163 R errorDynamicTypeLiteralSet( 1163 R visitDynamicTypeLiteralSet(
1164 SendSet node, 1164 SendSet node,
1165 ConstantExpression constant, 1165 ConstantExpression constant,
1166 Node rhs, 1166 Node rhs,
1167 A arg); 1167 A arg);
1168 1168
1169 /// Call to `assert` with [expression] as the condition. 1169 /// Call to `assert` with [expression] as the condition.
1170 /// 1170 ///
1171 /// For instance: 1171 /// For instance:
1172 /// m() { assert(expression); } 1172 /// m() { assert(expression); }
1173 /// 1173 ///
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after
3314 /// class C {} 3314 /// class C {}
3315 /// m1() => unresolved = 42; 3315 /// m1() => unresolved = 42;
3316 /// m2() => prefix.unresolved = 42; 3316 /// m2() => prefix.unresolved = 42;
3317 /// m3() => Unresolved.foo = 42; 3317 /// m3() => Unresolved.foo = 42;
3318 /// m4() => unresolved.foo = 42; 3318 /// m4() => unresolved.foo = 42;
3319 /// m5() => unresolved.Foo.bar = 42; 3319 /// m5() => unresolved.Foo.bar = 42;
3320 /// m6() => C.unresolved = 42; 3320 /// m6() => C.unresolved = 42;
3321 /// m7() => prefix.C.unresolved = 42; 3321 /// m7() => prefix.C.unresolved = 42;
3322 /// 3322 ///
3323 // TODO(johnniwinther): Split the cases in which a prefix is resolved. 3323 // TODO(johnniwinther): Split the cases in which a prefix is resolved.
3324 R errorUnresolvedSet( 3324 R visitUnresolvedSet(
3325 Send node, 3325 Send node,
3326 Element element, 3326 Element element,
3327 Node rhs, 3327 Node rhs,
3328 A arg); 3328 A arg);
3329 3329
3330 /// Invocation of the unresolved [element] with [arguments]. 3330 /// Invocation of the unresolved [element] with [arguments].
3331 /// 3331 ///
3332 /// For instance 3332 /// For instance
3333 /// class C {} 3333 /// class C {}
3334 /// m1() => unresolved(null, 42); 3334 /// m1() => unresolved(null, 42);
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
4421 /// C() : this._(42); 4421 /// C() : this._(42);
4422 /// } 4422 /// }
4423 /// 4423 ///
4424 R errorUnresolvedThisConstructorInvoke( 4424 R errorUnresolvedThisConstructorInvoke(
4425 Send node, 4425 Send node,
4426 Element element, 4426 Element element,
4427 NodeList arguments, 4427 NodeList arguments,
4428 Selector selector, 4428 Selector selector,
4429 A arg); 4429 A arg);
4430 } 4430 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698