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

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

Issue 732083002: Implement adding methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41885 Created 6 years, 1 month 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 | dart/pkg/compiler/lib/src/scanner/listener.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 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 BaseFunctionElementX(String name, 1550 BaseFunctionElementX(String name,
1551 ElementKind kind, 1551 ElementKind kind,
1552 Modifiers this.modifiers, 1552 Modifiers this.modifiers,
1553 Element enclosing, 1553 Element enclosing,
1554 bool hasNoBody) 1554 bool hasNoBody)
1555 : super(name, kind, enclosing), 1555 : super(name, kind, enclosing),
1556 _hasNoBody = hasNoBody { 1556 _hasNoBody = hasNoBody {
1557 assert(modifiers != null); 1557 assert(modifiers != null);
1558 } 1558 }
1559 1559
1560 bool get hasNoBody => _hasNoBody;
1561
1560 bool get isInstanceMember { 1562 bool get isInstanceMember {
1561 return isClassMember 1563 return isClassMember
1562 && !isConstructor 1564 && !isConstructor
1563 && !isStatic; 1565 && !isStatic;
1564 } 1566 }
1565 1567
1566 bool get hasFunctionSignature => functionSignatureCache != null; 1568 bool get hasFunctionSignature => functionSignatureCache != null;
1567 1569
1568 FunctionSignature computeSignature(Compiler compiler) { 1570 FunctionSignature computeSignature(Compiler compiler) {
1569 if (functionSignatureCache != null) return functionSignatureCache; 1571 if (functionSignatureCache != null) return functionSignatureCache;
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 AstElement get definingElement; 2819 AstElement get definingElement;
2818 2820
2819 bool get hasResolvedAst => definingElement.hasTreeElements; 2821 bool get hasResolvedAst => definingElement.hasTreeElements;
2820 2822
2821 ResolvedAst get resolvedAst { 2823 ResolvedAst get resolvedAst {
2822 return new ResolvedAst(declaration, 2824 return new ResolvedAst(declaration,
2823 definingElement.node, definingElement.treeElements); 2825 definingElement.node, definingElement.treeElements);
2824 } 2826 }
2825 2827
2826 } 2828 }
OLDNEW
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698