| 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;
|
| -}
|
|
|