Skip to content

Commit 298f0fe

Browse files
vicbvsavkin
authored andcommitted
fix: remove analyze warnings
Closes dart-archive#1411
1 parent 87279fe commit 298f0fe

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

lib/core_dom/light_dom.dart

-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
part of angular.core.dom_internal;
22

3-
@Injectable()
43
abstract class SourceLightDom {
54
void redistribute();
65
}
76

8-
@Injectable()
97
abstract class DestinationLightDom {
108
void redistribute();
119
void addViewPort(ViewPort viewPort);

test/core_dom/light_dom_spec.dart

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class DummyContent extends Mock implements Content {
99
List<Node> nodes = [];
1010
DummyContent(this.select);
1111
insert(nodes) => this.nodes = new List.from(nodes);
12+
// Prevent analyzer from complaining about missing method impl
13+
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
1214
}
1315

1416
void main() {

test/core_dom/ng_element_spec.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ library ng_element_spec;
22

33
import '../_specs.dart';
44

5-
class _MockLightDom extends Mock implements DestinationLightDom {}
5+
class _MockLightDom extends Mock implements DestinationLightDom {
6+
// Prevent analyzer from complaining about missing method impl
7+
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
8+
}
69

710
void main() {
811
describe('ngElement', () {

test/core_dom/view_spec.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ class BFormatter {
6060
call(value) => value;
6161
}
6262

63-
class _MockLightDom extends Mock implements DestinationLightDom {}
63+
class _MockLightDom extends Mock implements DestinationLightDom {
64+
// Prevent analyzer from complaining about missing method impl
65+
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
66+
}
6467

6568
main() {
6669
describe('View', () {
@@ -73,7 +76,7 @@ main() {
7376
ViewPort createViewPort({Injector injector, DestinationLightDom lightDom}) {
7477
final scope = injector.get(Scope);
7578
final view = new View([], scope);
76-
final di =new DirectiveInjector(null, injector, null, null, null, null, null, view);
79+
final di = new DirectiveInjector(null, injector, null, null, null, null, null, view);
7780
return new ViewPort(di, scope, rootElement.childNodes[0], injector.get(Animate), lightDom);
7881
}
7982

0 commit comments

Comments
 (0)