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

Side by Side Diff: runtime/vm/scanner_test.cc

Issue 10928051: Remove more () from getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/object_test.cc ('k') | no next file » | 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 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/os.h" 6 #include "vm/os.h"
7 #include "vm/scanner.h" 7 #include "vm/scanner.h"
8 #include "vm/token.h" 8 #include "vm/token.h"
9 #include "vm/unit_test.h" 9 #include "vm/unit_test.h"
10 10
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 " const Number y;" 354 " const Number y;"
355 "}" 355 "}"
356 "" 356 ""
357 "" 357 ""
358 "// Polar point class that implements the Point interface." 358 "// Polar point class that implements the Point interface."
359 "class PolarPoint implements Point {" 359 "class PolarPoint implements Point {"
360 "" 360 ""
361 " PolarPoint(Number theta, Number radius)" 361 " PolarPoint(Number theta, Number radius)"
362 " : theta(theta), radius(radius) { }" 362 " : theta(theta), radius(radius) { }"
363 "" 363 ""
364 " Number get x() { return radius * Math.cos(theta); }" 364 " Number get x { return radius * Math.cos(theta); }"
365 " Number get y() { return radius * Math.sin(theta); }" 365 " Number get y { return radius * Math.sin(theta); }"
366 "" 366 ""
367 " const Number theta;" 367 " const Number theta;"
368 " const Number radius;" 368 " const Number radius;"
369 "}" 369 "}"
370 "" 370 ""
371 "interface Map<K extends Hashable,V> default HashMap<K, V> {" 371 "interface Map<K extends Hashable,V> default HashMap<K, V> {"
372 " V operator [](K key);" 372 " V operator [](K key);"
373 " void operator []=(K key, V value);" 373 " void operator []=(K key, V value);"
374 " void forEach(function f(K key, V value));" 374 " void forEach(function f(K key, V value));"
375 "}" 375 "}"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 RawString(); 440 RawString();
441 MultilineString(); 441 MultilineString();
442 EmptyString(); 442 EmptyString();
443 EmptyMultilineString(); 443 EmptyMultilineString();
444 NumberLiteral(); 444 NumberLiteral();
445 InvalidText(); 445 InvalidText();
446 FindLineTest(); 446 FindLineTest();
447 } 447 }
448 448
449 } // namespace dart 449 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698