| 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 76%
|
| rename from pkg/fletchc/lib/src/fletch_native_descriptor.dart
|
| rename to pkg/dartino_compiler/lib/src/dartino_native_descriptor.dart
|
| index b3ff778534280a53346f7e5467f132dd8f0ae5cd..47b9f6216ab9ce7e44c0b00c94d94b6c1a004107 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;
|
| @@ -18,17 +18,17 @@ class FletchNativeDescriptor {
|
|
|
| final bool isDetachable;
|
|
|
| - FletchNativeDescriptor(this.enumName, this.cls, this.name, this.index,
|
| - this.isDetachable);
|
| + DartinoNativeDescriptor(this.enumName, this.cls, this.name, this.index,
|
| + this.isDetachable);
|
|
|
| String toString() {
|
| - return "FletchNativeDescriptor"
|
| + return "DartinoNativeDescriptor"
|
| "($enumName, $cls, $name, $index, $isDetachable)";
|
| }
|
|
|
| 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;
|
| @@ -38,9 +38,9 @@ class FletchNativeDescriptor {
|
| bool isDetachable = native['is_detachable'];
|
| assert(isDetachable != null);
|
| void add(cls, name) {
|
| - natives['$cls.$name'] = new FletchNativeDescriptor(
|
| + natives['$cls.$name'] = new DartinoNativeDescriptor(
|
| native['enum'], cls, name, index, isDetachable);
|
| - natives['$cls._fletchNative$name'] = new FletchNativeDescriptor(
|
| + natives['$cls._dartinoNative$name'] = new DartinoNativeDescriptor(
|
| native['enum'], cls, name, index, isDetachable);
|
| }
|
| if (cls == "<none>") {
|
|
|