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

Unified Diff: pkg/fletchc/lib/src/fletch_constants.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
« no previous file with comments | « pkg/fletchc/lib/src/fletch_compiler_implementation.dart ('k') | pkg/fletchc/lib/src/fletch_context.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/fletch_constants.dart
diff --git a/pkg/fletchc/lib/src/fletch_constants.dart b/pkg/fletchc/lib/src/fletch_constants.dart
deleted file mode 100644
index fc680ca7f2eb0db43796f6dff476977471dced1d..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/fletch_constants.dart
+++ /dev/null
@@ -1,81 +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.md file.
-
-library fletchc.fletch_constants;
-
-import 'package:compiler/src/constants/values.dart' show
- ConstantValue;
-
-import 'package:compiler/src/core_types.dart' show
- CoreTypes;
-
-import 'package:compiler/src/dart_types.dart' show
- DartType,
- DynamicType;
-
-class FletchFunctionConstant extends ConstantValue {
- final int functionId;
-
- FletchFunctionConstant(this.functionId);
-
- DartType getType(CoreTypes types) => const DynamicType();
-
- List<ConstantValue> getDependencies() => const <ConstantValue>[];
-
- accept(visitor, arg) {
- throw new UnsupportedError("FletchFunctionConstant.accept");
- }
-
- String unparse() => toStructuredString();
-
- String toStructuredString() {
- return 'FletchFunctionConstant($functionId)';
- }
-}
-
-class FletchClassConstant extends ConstantValue {
- final int classId;
-
- FletchClassConstant(this.classId);
-
- DartType getType(CoreTypes types) => const DynamicType();
-
- List<ConstantValue> getDependencies() => const <ConstantValue>[];
-
- accept(visitor, arg) {
- throw new UnsupportedError("FletchClassConstant.accept");
- }
-
- String unparse() => toStructuredString();
-
- String toStructuredString() {
- return 'FletchClassConstant($classId)';
- }
-}
-
-class FletchClassInstanceConstant extends ConstantValue {
- final int classId;
-
- FletchClassInstanceConstant(this.classId);
-
- DartType getType(CoreTypes types) => const DynamicType();
-
- List<ConstantValue> getDependencies() => const <ConstantValue>[];
-
- accept(visitor, arg) {
- throw new UnsupportedError("FletchClassInstanceConstant.accept");
- }
-
- String unparse() => toStructuredString();
-
- String toStructuredString() {
- return 'FletchClassInstanceConstant($classId)';
- }
-
- bool operator==(other) {
- return other is FletchClassInstanceConstant && other.classId == classId;
- }
-
- int get hashCode => classId;
-}
« no previous file with comments | « pkg/fletchc/lib/src/fletch_compiler_implementation.dart ('k') | pkg/fletchc/lib/src/fletch_context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698