| Index: compiler/lib/print.dart
|
| diff --git a/compiler/lib/print.dart b/compiler/lib/print.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f12083159c2dd694c0e0005a4a723356b611619b
|
| --- /dev/null
|
| +++ b/compiler/lib/print.dart
|
| @@ -0,0 +1,19 @@
|
| +// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// TODO(ngeoffray): define native top-level methods once top-level
|
| +// methods work with the resolver.
|
| +typedef void _PrintType(arg);
|
| +
|
| +_PrintType get print() {
|
| + return _Logger.print;
|
| +}
|
| +
|
| +class _Logger {
|
| + static print(arg) {
|
| + _printString((arg === null) ? "null" : arg.toString());
|
| + }
|
| +
|
| + static void _printString(String str) native;
|
| +}
|
|
|