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

Side by Side Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 1043723002: Handle NewExpression in SemanticSendVisitor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased+fix modely.dart Created 5 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 elements.modelx; 5 library elements.modelx;
6 6
7 import 'elements.dart'; 7 import 'elements.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../helpers/helpers.dart'; // Included for debug helpers. 9 import '../helpers/helpers.dart'; // Included for debug helpers.
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 get functionSignature => unsupported(); 298 get functionSignature => unsupported();
299 get parameters => unsupported(); 299 get parameters => unsupported();
300 get patch => null; 300 get patch => null;
301 get origin => this; 301 get origin => this;
302 get immediateRedirectionTarget => unsupported(); 302 get immediateRedirectionTarget => unsupported();
303 get nestedClosures => unsupported(); 303 get nestedClosures => unsupported();
304 get memberContext => unsupported(); 304 get memberContext => unsupported();
305 get executableContext => unsupported(); 305 get executableContext => unsupported();
306 get isExternal => unsupported(); 306 get isExternal => unsupported();
307 307
308 bool get isRedirectingGenerative => unsupported();
308 bool get isRedirectingFactory => unsupported(); 309 bool get isRedirectingFactory => unsupported();
309 310
310 computeSignature(compiler) => unsupported(); 311 computeSignature(compiler) => unsupported();
311 312
312 bool get hasFunctionSignature => false; 313 bool get hasFunctionSignature => false;
313 314
314 get effectiveTarget => this; 315 get effectiveTarget => this;
315 316
316 computeEffectiveTargetType(InterfaceType newType) => unsupported(); 317 computeEffectiveTargetType(InterfaceType newType) => unsupported();
317 318
(...skipping 16 matching lines...) Expand all
334 // be more like [ErroneousFieldElementX]. In particular, its kind should be 335 // be more like [ErroneousFieldElementX]. In particular, its kind should be
335 // [ElementKind.GENERATIVE_CONSTRUCTOR], and it shouldn't throw as much. 336 // [ElementKind.GENERATIVE_CONSTRUCTOR], and it shouldn't throw as much.
336 337
337 ErroneousConstructorElementX( 338 ErroneousConstructorElementX(
338 MessageKind messageKind, 339 MessageKind messageKind,
339 Map messageArguments, 340 Map messageArguments,
340 String name, 341 String name,
341 Element enclosing) 342 Element enclosing)
342 : super(messageKind, messageArguments, name, enclosing); 343 : super(messageKind, messageArguments, name, enclosing);
343 344
345 bool get isRedirectingGenerative => false;
346
347 void set isRedirectingGenerative(_) {
348 throw new UnsupportedError("isRedirectingGenerative");
349 }
350
344 bool get isRedirectingFactory => false; 351 bool get isRedirectingFactory => false;
345 352
346 get definingElement { 353 get definingElement {
347 throw new UnsupportedError("definingElement"); 354 throw new UnsupportedError("definingElement");
348 } 355 }
349 356
350 get asyncMarker { 357 get asyncMarker {
351 throw new UnsupportedError("asyncMarker"); 358 throw new UnsupportedError("asyncMarker");
352 } 359 }
353 360
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 } else { 1912 } else {
1906 return node.getBeginToken(); 1913 return node.getBeginToken();
1907 } 1914 }
1908 } 1915 }
1909 1916
1910 bool get isLocal => true; 1917 bool get isLocal => true;
1911 } 1918 }
1912 1919
1913 abstract class ConstructorElementX extends FunctionElementX 1920 abstract class ConstructorElementX extends FunctionElementX
1914 implements ConstructorElement { 1921 implements ConstructorElement {
1922 bool isRedirectingGenerative = false;
1915 1923
1916 ConstructorElementX(String name, 1924 ConstructorElementX(String name,
1917 ElementKind kind, 1925 ElementKind kind,
1918 Modifiers modifiers, 1926 Modifiers modifiers,
1919 Element enclosing) 1927 Element enclosing)
1920 : super(name, kind, modifiers, enclosing, false); 1928 : super(name, kind, modifiers, enclosing, false);
1921 1929
1922 FunctionElement immediateRedirectionTarget; 1930 FunctionElement immediateRedirectionTarget;
1923 1931
1924 bool get isRedirectingFactory => immediateRedirectionTarget != null; 1932 bool get isRedirectingFactory => immediateRedirectionTarget != null;
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
3060 AstElement get definingElement; 3068 AstElement get definingElement;
3061 3069
3062 bool get hasResolvedAst => definingElement.hasTreeElements; 3070 bool get hasResolvedAst => definingElement.hasTreeElements;
3063 3071
3064 ResolvedAst get resolvedAst { 3072 ResolvedAst get resolvedAst {
3065 return new ResolvedAst(declaration, 3073 return new ResolvedAst(declaration,
3066 definingElement.node, definingElement.treeElements); 3074 definingElement.node, definingElement.treeElements);
3067 } 3075 }
3068 3076
3069 } 3077 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/resolution/access_semantics.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698