Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Side by Side Diff: modules/angular2/src/transform/options.dart

Issue 927373004: Initial commit of Dart transformer to generate constructor stubs, see https://github.com/angular/an… (Closed) Base URL: https://github.com/kegluneq/angular.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 library angular2.transformer;
2
3 import 'package:path/path.dart' as path;
4
5 class TransformerOptions {
6 final String entryPoint;
7 final String newEntryPoint;
8 final String htmlEntryPoint;
9
10 TransformerOptions(this.entryPoint, this.newEntryPoint, this.htmlEntryPoint);
11
12 bool inSameTopLevelDir() {
13 var expectedDir = path.split(htmlEntryPoint)[0];
14 return (expectedDir == path.split(entryPoint)[0] &&
15 expectedDir == path.split(newEntryPoint)[0]);
16 }
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698