| Index: pkg/dartino_compiler/lib/src/dartino_native_descriptor.dart
|
| diff --git a/pkg/fletchc/lib/src/fletch_native_descriptor.dart b/pkg/dartino_compiler/lib/src/dartino_native_descriptor.dart
|
| similarity index 70%
|
| rename from pkg/fletchc/lib/src/fletch_native_descriptor.dart
|
| rename to pkg/dartino_compiler/lib/src/dartino_native_descriptor.dart
|
| index 4293db3f00eb06e4298342b2ab5ea030e7b82f0e..4ffc23d232ae4403d5bace50922008435a134222 100644
|
| --- a/pkg/fletchc/lib/src/fletch_native_descriptor.dart
|
| +++ b/pkg/dartino_compiler/lib/src/dartino_native_descriptor.dart
|
| @@ -2,12 +2,12 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE.md file.
|
|
|
| -library fletchc.fletch_native_descriptor;
|
| +library dartino_compiler.dartino_native_descriptor;
|
|
|
| import 'dart:convert' show
|
| JSON;
|
|
|
| -class FletchNativeDescriptor {
|
| +class DartinoNativeDescriptor {
|
| final String enumName;
|
|
|
| final String cls;
|
| @@ -16,13 +16,13 @@ class FletchNativeDescriptor {
|
|
|
| final int index;
|
|
|
| - FletchNativeDescriptor(this.enumName, this.cls, this.name, this.index);
|
| + DartinoNativeDescriptor(this.enumName, this.cls, this.name, this.index);
|
|
|
| - String toString() => "FletchNativeDescriptor($enumName, $cls, $name, $index)";
|
| + String toString() => "DartinoNativeDescriptor($enumName, $cls, $name, $index)";
|
|
|
| static void decode(
|
| String jsonData,
|
| - Map<String, FletchNativeDescriptor> natives,
|
| + Map<String, DartinoNativeDescriptor> natives,
|
| Map<String, String> names) {
|
| Map jsonObjects = JSON.decode(jsonData);
|
| int index = 0;
|
| @@ -31,9 +31,9 @@ class FletchNativeDescriptor {
|
| String name = native['name'];
|
| void add(cls, name) {
|
| natives['$cls.$name'] =
|
| - new FletchNativeDescriptor(native['enum'], cls, name, index);
|
| - natives['$cls._fletchNative$name'] =
|
| - new FletchNativeDescriptor(native['enum'], cls, name, index);
|
| + new DartinoNativeDescriptor(native['enum'], cls, name, index);
|
| + natives['$cls._dartinoNative$name'] =
|
| + new DartinoNativeDescriptor(native['enum'], cls, name, index);
|
| }
|
| if (cls == "<none>") {
|
| cls = null;
|
|
|