* 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
|
# 1.0.0-alpha.4
|
||||||
* Safely handle `void` return types of methods.
|
* Safely handle `void` return types of methods.
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,7 @@ class _ReflectedTypeParameter extends ReflectedTypeParameter {
|
||||||
final dart.TypeVariableMirror mirror;
|
final dart.TypeVariableMirror mirror;
|
||||||
|
|
||||||
_ReflectedTypeParameter(this.mirror)
|
_ReflectedTypeParameter(this.mirror)
|
||||||
: super(
|
: super(dart.MirrorSystem.getName(mirror.simpleName));
|
||||||
dart.MirrorSystem.getName(mirror.simpleName), mirror.reflectedType);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class _ReflectedTypeMirror extends ReflectedType {
|
class _ReflectedTypeMirror extends ReflectedType {
|
||||||
|
|
|
@ -166,16 +166,13 @@ class ReflectedParameter {
|
||||||
|
|
||||||
class ReflectedTypeParameter {
|
class ReflectedTypeParameter {
|
||||||
final String name;
|
final String name;
|
||||||
final Type type;
|
|
||||||
|
|
||||||
const ReflectedTypeParameter(this.name, this.type);
|
const ReflectedTypeParameter(this.name);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode => hash2(name, type);
|
int get hashCode => hashObjects([name]);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(other) =>
|
bool operator ==(other) =>
|
||||||
other is ReflectedTypeParameter &&
|
other is ReflectedTypeParameter && other.name == name;
|
||||||
other.name == name &&
|
|
||||||
other.type == type;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_container
|
name: angel_container
|
||||||
version: 1.0.0-alpha.4
|
version: 1.0.0-alpha.5
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
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."
|
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
|
homepage: https://github.com/angel-dart/container.git
|
||||||
|
|
Loading…
Reference in a new issue