49 lines
837 B
Dart
Raw Normal View History

library angular.core.facade.async;
export 'dart:async' show Future;
2014-10-01 16:57:38 -07:00
export 'dart:core' show Type, int;
class FIELD {
const constructor(this.definition);
}
class CONST {}
class ABSTRACT {}
class IMPLEMENTS {}
class StringWrapper {
static String fromCharCode(int code) {
return new String.fromCharCode(code);
}
static charCodeAt(String s, int index) {
return s.codeUnitAt(index);
}
}
class StringJoiner {
List<String> _parts = <String>[];
void add(String part) {
_parts.add(part);
}
String toString() => _parts.join("");
}
class NumberWrapper {
static int parseIntAutoRadix(String text) {
return int.parse(text);
}
static int parseInt(String text, int radix) {
return int.parse(text, radix: radix);
}
static double parseFloat(String text) {
return double.parse(text);
}
}