OLD | NEW |
1 library angular2.transformer; | 1 library angular2.src.transform; |
2 | 2 |
3 import 'package:path/path.dart' as path; | 3 import 'package:path/path.dart' as path; |
4 | 4 |
5 class TransformerOptions { | 5 class TransformerOptions { |
6 final String entryPoint; | 6 final String entryPoint; |
7 final String newEntryPoint; | 7 final String newEntryPoint; |
8 final String htmlEntryPoint; | 8 final String htmlEntryPoint; |
9 | 9 |
10 TransformerOptions(this.entryPoint, this.newEntryPoint, this.htmlEntryPoint); | 10 TransformerOptions(this.entryPoint, this.newEntryPoint, this.htmlEntryPoint); |
11 | 11 |
12 bool inSameTopLevelDir() { | 12 bool inSameTopLevelDir() { |
13 var expectedDir = path.split(htmlEntryPoint)[0]; | 13 var expectedDir = path.split(htmlEntryPoint)[0]; |
14 return (expectedDir == path.split(entryPoint)[0] && | 14 return (expectedDir == path.split(entryPoint)[0] && |
15 expectedDir == path.split(newEntryPoint)[0]); | 15 expectedDir == path.split(newEntryPoint)[0]); |
16 } | 16 } |
17 } | 17 } |
OLD | NEW |