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

Unified Diff: pkg/compiler/lib/src/util/characters.dart

Issue 891673003: dart2js: Refactoring, documentation, and a few bugfixes in Namer class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Typo and TODO about clash in named parameters Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/util/characters.dart
diff --git a/pkg/compiler/lib/src/util/characters.dart b/pkg/compiler/lib/src/util/characters.dart
index 5961d0764a0d78de9abba943782c89a4e971725a..0168e0b37bec082d11651e1923b636dfdefafd68 100644
--- a/pkg/compiler/lib/src/util/characters.dart
+++ b/pkg/compiler/lib/src/util/characters.dart
@@ -141,3 +141,7 @@ bool isUtf16LeadSurrogate(int value) {
bool isUtf16TrailSurrogate(int value) {
return value >= 0xdc00 && value <= 0xdfff;
}
+
+bool isDigit(int characterCode) {
+ return $0 <= characterCode && characterCode <= $9;
+}

Powered by Google App Engine
This is Rietveld 408576698