Skip to content

Commit

Permalink
feat(dart/transform): Support part directives
Browse files Browse the repository at this point in the history
Allow users to split libraries using the `part` directive.

Closes #1817
  • Loading branch information
Tim Blasi committed Aug 13, 2015
1 parent b6ee208 commit aa480fe
Show file tree
Hide file tree
Showing 13 changed files with 335 additions and 115 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
library angular2.src.core.compiler.directive_lifecycle_reflector;

import 'package:angular2/src/core/annotations_impl/annotations.dart';
import 'package:angular2/src/core/compiler/interfaces.dart';
import 'package:angular2/src/reflection/reflection.dart';
Expand Down
6 changes: 4 additions & 2 deletions modules/angular2/src/test_lib/test_lib.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ class Expect extends gns.Expect {
void toThrowError([message = ""]) => toThrowWith(message: message);
void toThrowErrorWith(message) => expectException(this.actual, message);
void toBePromise() => gns.guinness.matchers.toBeTrue(actual is Future);
void toHaveCssClass(className) => gns.guinness.matchers.toBeTrue(DOM.hasClass(actual, className));
void toHaveCssClass(className) =>
gns.guinness.matchers.toBeTrue(DOM.hasClass(actual, className));
void toImplement(expected) => toBeA(expected);
void toBeNaN() =>
gns.guinness.matchers.toBeTrue(double.NAN.compareTo(actual) == 0);
Expand Down Expand Up @@ -139,7 +140,8 @@ class NotExpect extends gns.NotExpect {

void toEqual(expected) => toHaveSameProps(expected);
void toBePromise() => gns.guinness.matchers.toBeFalse(actual is Future);
void toHaveCssClass(className) => gns.guinness.matchers.toBeFalse(DOM.hasClass(actual, className));
void toHaveCssClass(className) =>
gns.guinness.matchers.toBeFalse(DOM.hasClass(actual, className));
void toBeNull() => gns.guinness.matchers.toBeFalse(actual == null);
Function get _expect => gns.guinness.matchers.expect;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AsyncStringWriter extends PrintWriter {
: _curr = curr,
_bufs = <StringBuffer>[curr];

AsyncStringWriter() : this._(new StringBuffer());
AsyncStringWriter([Object content = ""]) : this._(new StringBuffer(content));

void print(x) {
_curr.write(x);
Expand Down
Loading

0 comments on commit aa480fe

Please sign in to comment.