* Remove concrete type from ReflectedTypeParameter
.
This commit is contained in:
parent
a9c1b7ff0d
commit
6c2cbb34f1
4 changed files with 8 additions and 9 deletions
|
@ -1,3 +1,6 @@
|
|||
# 1.0.0-alpha.5
|
||||
* Remove concrete type from `ReflectedTypeParameter`.
|
||||
|
||||
# 1.0.0-alpha.4
|
||||
* Safely handle `void` return types of methods.
|
||||
|
||||
|
|
|
@ -54,8 +54,7 @@ class _ReflectedTypeParameter extends ReflectedTypeParameter {
|
|||
final dart.TypeVariableMirror mirror;
|
||||
|
||||
_ReflectedTypeParameter(this.mirror)
|
||||
: super(
|
||||
dart.MirrorSystem.getName(mirror.simpleName), mirror.reflectedType);
|
||||
: super(dart.MirrorSystem.getName(mirror.simpleName));
|
||||
}
|
||||
|
||||
class _ReflectedTypeMirror extends ReflectedType {
|
||||
|
|
|
@ -166,16 +166,13 @@ class ReflectedParameter {
|
|||
|
||||
class ReflectedTypeParameter {
|
||||
final String name;
|
||||
final Type type;
|
||||
|
||||
const ReflectedTypeParameter(this.name, this.type);
|
||||
const ReflectedTypeParameter(this.name);
|
||||
|
||||
@override
|
||||
int get hashCode => hash2(name, type);
|
||||
int get hashCode => hashObjects([name]);
|
||||
|
||||
@override
|
||||
bool operator ==(other) =>
|
||||
other is ReflectedTypeParameter &&
|
||||
other.name == name &&
|
||||
other.type == type;
|
||||
other is ReflectedTypeParameter && other.name == name;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_container
|
||||
version: 1.0.0-alpha.4
|
||||
version: 1.0.0-alpha.5
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
description: "A better IoC container and dependency injector for Angel, ultimately allowing Angel to be used without dart:mirrors."
|
||||
homepage: https://github.com/angel-dart/container.git
|
||||
|
|
Loading…
Reference in a new issue