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

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

Issue 1140903002: Handle constant constructors with parse errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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 | Annotate | Revision Log
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 3107 matching lines...) Expand 10 before | Expand all | Expand 10 after
3118 /// 3118 ///
3119 /// For instance 3119 /// For instance
3120 /// class C { 3120 /// class C {
3121 /// C(a, b); 3121 /// C(a, b);
3122 /// } 3122 /// }
3123 /// m() => const C(true, 42); 3123 /// m() => const C(true, 42);
3124 /// 3124 ///
3125 R errorNonConstantConstructorInvoke( 3125 R errorNonConstantConstructorInvoke(
3126 NewExpression node, 3126 NewExpression node,
3127 Element element, 3127 Element element,
3128 InterfaceType type, 3128 DartType type,
3129 NodeList arguments, 3129 NodeList arguments,
3130 CallStructure callStructure, 3130 CallStructure callStructure,
3131 A arg); 3131 A arg);
3132 3132
3133 /// Invocation of a constructor on an abstract [type] with [arguments]. 3133 /// Invocation of a constructor on an abstract [type] with [arguments].
3134 /// 3134 ///
3135 /// For instance 3135 /// For instance
3136 /// m() => new Unresolved(true, 42); 3136 /// m() => new Unresolved(true, 42);
3137 /// 3137 ///
3138 /// where [type] is the malformed type `Unresolved`. 3138 /// where [type] is the malformed type `Unresolved`.
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
3707 /// C() : this._(42); 3707 /// C() : this._(42);
3708 /// } 3708 /// }
3709 /// 3709 ///
3710 R errorUnresolvedThisConstructorInvoke( 3710 R errorUnresolvedThisConstructorInvoke(
3711 Send node, 3711 Send node,
3712 Element element, 3712 Element element,
3713 NodeList arguments, 3713 NodeList arguments,
3714 Selector selector, 3714 Selector selector,
3715 A arg); 3715 A arg);
3716 } 3716 }
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