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

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: Fixing review comments 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
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 }
OLDNEW
« no previous file with comments | « modules/angular2/src/transform/html_transform.dart ('k') | modules/angular2/src/transform/resolvers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698