2014-09-19 16:38:37 -07:00
|
|
|
library angular.core.facade.async;
|
|
|
|
|
|
|
|
export 'dart:async' show Future;
|
2014-10-01 16:57:38 -07:00
|
|
|
export 'dart:core' show Type, int;
|
2014-09-28 13:55:01 -07:00
|
|
|
|
|
|
|
class FIELD {
|
|
|
|
const constructor(this.definition);
|
|
|
|
}
|
|
|
|
|
|
|
|
class CONST {}
|
|
|
|
class ABSTRACT {}
|
2014-09-26 13:52:12 -07:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|