chore: replace @CONST() with /*@ts2dart_const*/
This commit is contained in:
committed by
Martin Probst
parent
a02614beaa
commit
3aa322a9c6
@@ -14,10 +14,6 @@ class Math {
|
||||
static num min(num a, num b) => math.min(a, b);
|
||||
}
|
||||
|
||||
class CONST {
|
||||
const CONST();
|
||||
}
|
||||
|
||||
const IS_DART = true;
|
||||
|
||||
scheduleMicroTask(Function fn) {
|
||||
@@ -398,4 +394,4 @@ num bitWiseAnd(List values) {
|
||||
|
||||
String escape(String s) {
|
||||
return Uri.encodeComponent(s);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,10 +106,6 @@ _global.assert = function assert(condition) {
|
||||
// TODO: to be fixed properly via #2830, noop for now
|
||||
};
|
||||
|
||||
export function CONST(): ClassDecorator & PropertyDecorator {
|
||||
return (target) => target;
|
||||
}
|
||||
|
||||
export function isPresent(obj: any): boolean {
|
||||
return obj !== undefined && obj !== null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user