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

Side by Side Diff: third_party/pkg/angular/lib/tools/source_metadata_extractor.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.source_metadata_extractor ; 1 library angular.source_metadata_extractor ;
2 2
3 import 'package:analyzer/src/generated/ast.dart'; 3 import 'package:analyzer/src/generated/ast.dart';
4 4
5 import 'source_crawler.dart'; 5 import 'package:angular/tools/source_crawler.dart';
6 import '../utils.dart'; 6 import 'package:angular/tools/common.dart';
7 import 'common.dart'; 7 import 'package:angular/utils.dart';
8 8
9 const String _COMPONENT = '-component'; 9 const String _COMPONENT = '-component';
10 const String _DIRECTIVE = '-directive'; 10 const String _DIRECTIVE = '-directive';
11 String _ATTR_DIRECTIVE = '-attr' + _DIRECTIVE; 11 String _ATTR_DIRECTIVE = '-attr' + _DIRECTIVE;
12 RegExp _ATTR_SELECTOR_REGEXP = new RegExp(r'\[([^\]]+)\]'); 12 RegExp _ATTR_SELECTOR_REGEXP = new RegExp(r'\[([^\]]+)\]');
13 const List<String> _specs = const ['=>!', '=>', '<=>', '@', '&']; 13 const List<String> _specs = const ['=>!', '=>', '<=>', '@', '&'];
14 const Map<String, String> _attrAnnotationsToSpec = const { 14 const Map<String, String> _attrAnnotationsToSpec = const {
15 'NgAttr': '@', 15 'NgAttr': '@',
16 'NgOneWay': '=>', 16 'NgOneWay': '=>',
17 'NgOneWayOneTime': '=>!', 17 'NgOneWayOneTime': '=>!',
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 return res; 209 return res;
210 } 210 }
211 211
212 StringLiteral assertString(Expression key) { 212 StringLiteral assertString(Expression key) {
213 if (key is! StringLiteral) { 213 if (key is! StringLiteral) {
214 throw 'must be a string literal: ${key.runtimeType}'; 214 throw 'must be a string literal: ${key.runtimeType}';
215 } 215 }
216 return key; 216 return key;
217 } 217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698