Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Fix a bug in annotation scoping. (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
matanlurey authored Feb 8, 2017
1 parent 04bc46b commit c3fc769
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/src/builders/reference.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ReferenceBuilder extends Object
Annotation buildAnnotation([Scope scope]) {
return astFactory.annotation(
$at,
stringIdentifier(_name),
identifier(scope, _name, _importFrom),
null,
null,
null,
Expand Down
11 changes: 6 additions & 5 deletions test/e2e_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,19 @@ void main() {
equalsSource(
r'''
import 'package:app/app.dart' as _i1;
import 'package:app/thing.dart' as _i2;
import 'dart:core' as _i2;
import 'package:app/thing.dart' as _i3;
class Injector implements _i1.App {
final _i1.Module _module;
Injector(this._module);
@override
_i2.Thing getThing() => new _i2.Thing(_module.getDep1(), _module.getDep2());
@_i2.override
_i3.Thing getThing() => new _i3.Thing(_module.getDep1(), _module.getDep2());
_i2.Thing instantiateAndReturnNamedThing() {
return new _i2.Thing.named();
_i3.Thing instantiateAndReturnNamedThing() {
return new _i3.Thing.named();
}
}
''',
Expand Down

0 comments on commit c3fc769

Please sign in to comment.