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

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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 const Function& other, 1516 const Function& other,
1517 const AbstractTypeArguments& other_type_arguments, 1517 const AbstractTypeArguments& other_type_arguments,
1518 Error* malformed_error) const { 1518 Error* malformed_error) const {
1519 return TypeTest(kIsMoreSpecificThan, 1519 return TypeTest(kIsMoreSpecificThan,
1520 type_arguments, 1520 type_arguments,
1521 other, 1521 other,
1522 other_type_arguments, 1522 other_type_arguments,
1523 malformed_error); 1523 malformed_error);
1524 } 1524 }
1525 1525
1526 // Returns true if this function represents a getter.
regis 2012/08/10 22:41:08 You should comment that implicit getters are not r
hausner 2012/08/10 22:51:01 Done. I just wanted to replace the "kind == kGette
1527 bool IsGetterFunction() const {
1528 return kind() == RawFunction::kGetterFunction;
1529 }
1530
1531 // Returns true if this function represents a setter.
1532 bool IsSetterFunction() const {
regis 2012/08/10 22:41:08 You should comment that implicit setters are not r
hausner 2012/08/10 22:51:01 Done.
1533 return kind() == RawFunction::kSetterFunction;
1534 }
1535
1526 // Returns true if this function represents a (possibly implicit) closure 1536 // Returns true if this function represents a (possibly implicit) closure
1527 // function. 1537 // function.
1528 bool IsClosureFunction() const { 1538 bool IsClosureFunction() const {
1529 return kind() == RawFunction::kClosureFunction; 1539 return kind() == RawFunction::kClosureFunction;
1530 } 1540 }
1531 1541
1532 // Returns true if this function represents an implicit closure function. 1542 // Returns true if this function represents an implicit closure function.
1533 bool IsImplicitClosureFunction() const; 1543 bool IsImplicitClosureFunction() const;
1534 1544
1535 // Returns true if this function represents a non implicit closure function. 1545 // Returns true if this function represents a non implicit closure function.
(...skipping 3887 matching lines...) Expand 10 before | Expand all | Expand 10 after
5423 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5433 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5424 return false; 5434 return false;
5425 } 5435 }
5426 } 5436 }
5427 return true; 5437 return true;
5428 } 5438 }
5429 5439
5430 } // namespace dart 5440 } // namespace dart
5431 5441
5432 #endif // VM_OBJECT_H_ 5442 #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