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

Side by Side Diff: runtime/vm/object.h

Issue 10837208: Support new getter syntax (no formal parameter list) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/parser.cc » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 const Function& other, 1526 const Function& other,
1527 const AbstractTypeArguments& other_type_arguments, 1527 const AbstractTypeArguments& other_type_arguments,
1528 Error* malformed_error) const { 1528 Error* malformed_error) const {
1529 return TypeTest(kIsMoreSpecificThan, 1529 return TypeTest(kIsMoreSpecificThan,
1530 type_arguments, 1530 type_arguments,
1531 other, 1531 other,
1532 other_type_arguments, 1532 other_type_arguments,
1533 malformed_error); 1533 malformed_error);
1534 } 1534 }
1535 1535
1536 // Returns true if this function represents an explicit getter function.
1537 bool IsGetterFunction() const {
1538 return kind() == RawFunction::kGetterFunction;
1539 }
1540
1541 // Returns true if this function represents an explicit setter function.
1542 bool IsSetterFunction() const {
1543 return kind() == RawFunction::kSetterFunction;
1544 }
1545
1536 // Returns true if this function represents a (possibly implicit) closure 1546 // Returns true if this function represents a (possibly implicit) closure
1537 // function. 1547 // function.
1538 bool IsClosureFunction() const { 1548 bool IsClosureFunction() const {
1539 return kind() == RawFunction::kClosureFunction; 1549 return kind() == RawFunction::kClosureFunction;
1540 } 1550 }
1541 1551
1542 // Returns true if this function represents an implicit closure function. 1552 // Returns true if this function represents an implicit closure function.
1543 bool IsImplicitClosureFunction() const; 1553 bool IsImplicitClosureFunction() const;
1544 1554
1545 // Returns true if this function represents a non implicit closure function. 1555 // Returns true if this function represents a non implicit closure function.
(...skipping 3906 matching lines...) Expand 10 before | Expand all | Expand 10 after
5452 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5462 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5453 return false; 5463 return false;
5454 } 5464 }
5455 } 5465 }
5456 return true; 5466 return true;
5457 } 5467 }
5458 5468
5459 } // namespace dart 5469 } // namespace dart
5460 5470
5461 #endif // VM_OBJECT_H_ 5471 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698