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

Side by Side Diff: lib/src/template/analyzer.dart

Issue 11092092: Support compiling templates in the browser. Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « lib/dwc_shared.dart ('k') | lib/src/template/compile.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Part of the template compilation that concerns with extracting information 6 * Part of the template compilation that concerns with extracting information
7 * from the HTML parse tree. 7 * from the HTML parse tree.
8 */ 8 */
9 library analyzer; 9 library analyzer;
10 10
11 import 'dart:coreimpl'; 11 import 'dart:coreimpl';
12 import 'package:html5lib/dom.dart'; 12 import 'package:html5lib/dom.dart';
13 import 'package:html5lib/dom_parsing.dart';
13 14
14 import 'info.dart'; 15 import 'info.dart';
15 import 'files.dart'; 16 import 'files.dart';
16 import 'utils.dart'; 17 import 'utils.dart';
17 import 'world.dart'; 18 import 'world.dart';
18 19
19 20
20 /** 21 /**
21 * Finds custom elements in this file and the list of referenced files with 22 * Finds custom elements in this file and the list of referenced files with
22 * component declarations. This is the first pass of analysis on a file. 23 * component declarations. This is the first pass of analysis on a file.
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 '${fileInfo.filename}: imported duplicate custom element definitions ' 516 '${fileInfo.filename}: imported duplicate custom element definitions '
516 'for "${componentInfo.tagName}"' 517 'for "${componentInfo.tagName}"'
517 'from "${existing.file.filename}":\n ${existing.element.outerHTML}\n' 518 'from "${existing.file.filename}":\n ${existing.element.outerHTML}\n'
518 'and from "${componentInfo.file.filename}":\n' 519 'and from "${componentInfo.file.filename}":\n'
519 ' ${componentInfo.element.outerHTML}'); 520 ' ${componentInfo.element.outerHTML}');
520 } 521 }
521 } else { 522 } else {
522 fileInfo.components[componentInfo.tagName] = componentInfo; 523 fileInfo.components[componentInfo.tagName] = componentInfo;
523 } 524 }
524 } 525 }
OLDNEW
« no previous file with comments | « lib/dwc_shared.dart ('k') | lib/src/template/compile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698