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

Unified Diff: tools/immic/lib/src/primitives.dart

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « tools/immic/lib/src/plugins/shared.dart ('k') | tools/immic/lib/src/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/immic/lib/src/primitives.dart
diff --git a/tools/immic/lib/src/primitives.dart b/tools/immic/lib/src/primitives.dart
deleted file mode 100644
index c5196a9936395e4daac68196692364af01136666..0000000000000000000000000000000000000000
--- a/tools/immic/lib/src/primitives.dart
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2015, the Dartino 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.
-
-library immic.primitives;
-
-enum PrimitiveType {
- VOID,
- BOOL,
-
- UINT8,
- UINT16,
-
- INT8,
- INT16,
- INT32,
- INT64,
-
- FLOAT32,
- FLOAT64
-}
-
-int size(PrimitiveType type) {
- switch (type) {
- case PrimitiveType.VOID: return 0;
-
- case PrimitiveType.BOOL:
- case PrimitiveType.INT8:
- case PrimitiveType.UINT8: return 1;
-
- case PrimitiveType.INT16:
- case PrimitiveType.UINT16: return 2;
-
- case PrimitiveType.FLOAT32:
- case PrimitiveType.INT32: return 4;
-
- case PrimitiveType.FLOAT64:
- case PrimitiveType.INT64: return 8;
- }
- return -1;
-}
-
-PrimitiveType lookup(String identifier) {
- Map<String, PrimitiveType> types = const {
- 'void' : PrimitiveType.VOID,
- 'bool' : PrimitiveType.BOOL,
-
- 'uint8' : PrimitiveType.UINT8,
- 'uint16' : PrimitiveType.UINT16,
-
- 'int8' : PrimitiveType.INT8,
- 'int16' : PrimitiveType.INT16,
- 'int32' : PrimitiveType.INT32,
- 'int64' : PrimitiveType.INT64,
-
- 'float32' : PrimitiveType.FLOAT32,
- 'float64' : PrimitiveType.FLOAT64,
- };
- return types[identifier];
-}
« no previous file with comments | « tools/immic/lib/src/plugins/shared.dart ('k') | tools/immic/lib/src/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698