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

Unified Diff: pkg/servicec/lib/types.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 | « pkg/servicec/lib/targets.dart ('k') | pkg/servicec/lib/util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/servicec/lib/types.dart
diff --git a/pkg/servicec/lib/types.dart b/pkg/servicec/lib/types.dart
deleted file mode 100644
index d472a2afb4d87373d3ea858562bdaa82ce14d8a1..0000000000000000000000000000000000000000
--- a/pkg/servicec/lib/types.dart
+++ /dev/null
@@ -1,65 +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 servicec.types;
-
-enum TypeKind {
- VOID,
- BOOL,
-
- UINT8,
- UINT16,
-
- INT8,
- INT16,
- INT32,
- INT64,
-
- FLOAT32,
- FLOAT64,
-
- STRING,
- LIST,
-
- STRUCT,
- POINTER
-}
-
-final List<TypeKind> primitiveTypes = [
- TypeKind.VOID,
- TypeKind.BOOL,
-
- TypeKind.UINT8,
- TypeKind.UINT16,
-
- TypeKind.INT8,
- TypeKind.INT16,
- TypeKind.INT32,
- TypeKind.INT64,
-
- TypeKind.FLOAT32,
- TypeKind.FLOAT64
-];
-
-TypeKind lookupType(String identifier) {
- Map<String, TypeKind> types = const {
- 'void' : TypeKind.VOID,
- 'bool' : TypeKind.BOOL,
-
- 'uint8' : TypeKind.UINT8,
- 'uint16' : TypeKind.UINT16,
-
- 'int8' : TypeKind.INT8,
- 'int16' : TypeKind.INT16,
- 'int32' : TypeKind.INT32,
- 'int64' : TypeKind.INT64,
-
- 'float32' : TypeKind.FLOAT32,
- 'float64' : TypeKind.FLOAT64,
-
- 'String' : TypeKind.STRING,
- 'List' : TypeKind.LIST,
- };
- return types[identifier];
-}
« no previous file with comments | « pkg/servicec/lib/targets.dart ('k') | pkg/servicec/lib/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698