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

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

Issue 987393002: Support @NoInline for constructor bodies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comments Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 ElementKind.GENERATIVE_CONSTRUCTOR_BODY, 2009 ElementKind.GENERATIVE_CONSTRUCTOR_BODY,
2010 Modifiers.EMPTY, 2010 Modifiers.EMPTY,
2011 constructor.enclosingElement, false) { 2011 constructor.enclosingElement, false) {
2012 functionSignatureCache = constructor.functionSignature; 2012 functionSignatureCache = constructor.functionSignature;
2013 } 2013 }
2014 2014
2015 bool get hasNode => constructor.hasNode; 2015 bool get hasNode => constructor.hasNode;
2016 2016
2017 FunctionExpression get node => constructor.node; 2017 FunctionExpression get node => constructor.node;
2018 2018
2019 Link<MetadataAnnotation> get metadata => constructor.metadata;
2020
2019 bool get isInstanceMember => true; 2021 bool get isInstanceMember => true;
2020 2022
2021 FunctionType computeType(Compiler compiler) { 2023 FunctionType computeType(Compiler compiler) {
2022 compiler.internalError(this, '$this.computeType.'); 2024 compiler.internalError(this, '$this.computeType.');
2023 return null; 2025 return null;
2024 } 2026 }
2025 2027
2026 Token get position => constructor.position; 2028 Token get position => constructor.position;
2027 2029
2028 Element get outermostEnclosingMemberOrTopLevel => constructor; 2030 Element get outermostEnclosingMemberOrTopLevel => constructor;
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 AstElement get definingElement; 3063 AstElement get definingElement;
3062 3064
3063 bool get hasResolvedAst => definingElement.hasTreeElements; 3065 bool get hasResolvedAst => definingElement.hasTreeElements;
3064 3066
3065 ResolvedAst get resolvedAst { 3067 ResolvedAst get resolvedAst {
3066 return new ResolvedAst(declaration, 3068 return new ResolvedAst(declaration,
3067 definingElement.node, definingElement.treeElements); 3069 definingElement.node, definingElement.treeElements);
3068 } 3070 }
3069 3071
3070 } 3072 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698