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

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

Issue 10993059: Stop using the Hashable interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ,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 "}"
376 "" 376 ""
377 "class Foo {" 377 "class Foo {"
378 " static const Array kMyArray = [1,2,3,4,5,6];" 378 " static const Array kMyArray = [1,2,3,4,5,6];"
379 " static const Point kMyPoint = Point(1,2);" 379 " static const Point kMyPoint = Point(1,2);"
380 "}" 380 "}"
381 "" 381 ""
(...skipping 58 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

Powered by Google App Engine
This is Rietveld 408576698