Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(913)

Unified Diff: pkg/dartino_compiler/lib/src/dartino_native_descriptor.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>") {
« no previous file with comments | « pkg/dartino_compiler/lib/src/dartino_function_builder.dart ('k') | pkg/dartino_compiler/lib/src/dartino_registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698