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

Side by Side Diff: third_party/pkg/angular/lib/tools/template_cache_generator.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 library angular.template_cache_generator; 1 library angular.template_cache_generator;
2 2
3 import 'dart:io'; 3 import 'dart:io';
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'source_crawler_impl.dart'; 8 import 'package:angular/tools/source_crawler_impl.dart';
9 9
10 const String PACKAGE_PREFIX = 'package:'; 10 const String PACKAGE_PREFIX = 'package:';
11 const String DART_PACKAGE_PREFIX = 'dart:'; 11 const String DART_PACKAGE_PREFIX = 'dart:';
12 12
13 String fileHeader(String library) => '''// GENERATED, DO NOT EDIT! 13 String fileHeader(String library) => '''// GENERATED, DO NOT EDIT!
14 library ${library}; 14 library ${library};
15 15
16 import 'package:angular/angular.dart'; 16 import 'package:angular/angular.dart';
17 17
18 primeTemplateCache(TemplateCache tc) { 18 primeTemplateCache(TemplateCache tc) {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 return key; 192 return key;
193 } 193 }
194 194
195 StringLiteral assertString(Expression key) { 195 StringLiteral assertString(Expression key) {
196 if (key is! StringLiteral) { 196 if (key is! StringLiteral) {
197 throw 'must be a string literal: ${key.runtimeType}'; 197 throw 'must be a string literal: ${key.runtimeType}';
198 } 198 }
199 return key; 199 return key;
200 } 200 }
201 } 201 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/tools/source_metadata_extractor.dart ('k') | third_party/pkg/angular/package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698