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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/html.dart

Issue 12803014: New Analysis Engine translation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.html; 4 library engine.html;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'source.dart'; 8 import 'source.dart';
9 import 'error.dart'; 9 import 'error.dart';
10 import 'instrumentation.dart'; 10 import 'instrumentation.dart';
(...skipping 24 matching lines...) Expand all
35 /** 35 /**
36 * The lexeme represented by this token. 36 * The lexeme represented by this token.
37 */ 37 */
38 String _value; 38 String _value;
39 /** 39 /**
40 * Initialize a newly created token. 40 * Initialize a newly created token.
41 * @param type the token type (not {@code null}) 41 * @param type the token type (not {@code null})
42 * @param offset the offset from the beginning of the file to the first charac ter in the token 42 * @param offset the offset from the beginning of the file to the first charac ter in the token
43 */ 43 */
44 Token.con1(TokenType type, int offset) { 44 Token.con1(TokenType type, int offset) {
45 _jtd_constructor_149_impl(type, offset); 45 _jtd_constructor_148_impl(type, offset);
46 } 46 }
47 _jtd_constructor_149_impl(TokenType type, int offset) { 47 _jtd_constructor_148_impl(TokenType type, int offset) {
48 _jtd_constructor_150_impl(type, offset, type.lexeme); 48 _jtd_constructor_149_impl(type, offset, type.lexeme);
49 } 49 }
50 /** 50 /**
51 * Initialize a newly created token. 51 * Initialize a newly created token.
52 * @param type the token type (not {@code null}) 52 * @param type the token type (not {@code null})
53 * @param offset the offset from the beginning of the file to the first charac ter in the token 53 * @param offset the offset from the beginning of the file to the first charac ter in the token
54 * @param value the lexeme represented by this token (not {@code null}) 54 * @param value the lexeme represented by this token (not {@code null})
55 */ 55 */
56 Token.con2(TokenType type4, int offset3, String value7) { 56 Token.con2(TokenType type4, int offset3, String value7) {
57 _jtd_constructor_150_impl(type4, offset3, value7); 57 _jtd_constructor_149_impl(type4, offset3, value7);
58 } 58 }
59 _jtd_constructor_150_impl(TokenType type4, int offset3, String value7) { 59 _jtd_constructor_149_impl(TokenType type4, int offset3, String value7) {
60 this._type = type4; 60 this._type = type4;
61 this._value = value7; 61 this._value = value7;
62 this._offset = offset3; 62 this._offset = offset3;
63 } 63 }
64 /** 64 /**
65 * Return the offset from the beginning of the file to the character after las t character of the 65 * Return the offset from the beginning of the file to the character after las t character of the
66 * token. 66 * token.
67 * @return the offset from the beginning of the file to the first character af ter last character 67 * @return the offset from the beginning of the file to the first character af ter last character
68 * of the token 68 * of the token
69 */ 69 */
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 /** 620 /**
621 * Instances of the class {@code CharBufferScanner} implement a scanner that rea ds from a character 621 * Instances of the class {@code CharBufferScanner} implement a scanner that rea ds from a character
622 * buffer. The scanning logic is in the superclass. 622 * buffer. The scanning logic is in the superclass.
623 * @coverage dart.engine.html 623 * @coverage dart.engine.html
624 */ 624 */
625 class CharBufferScanner extends AbstractScanner { 625 class CharBufferScanner extends AbstractScanner {
626 /** 626 /**
627 * The buffer from which characters will be read. 627 * The buffer from which characters will be read.
628 */ 628 */
629 CharBuffer _buffer; 629 CharSequence _buffer;
630 /** 630 /**
631 * The number of characters in the buffer. 631 * The number of characters in the buffer.
632 */ 632 */
633 int _bufferLength = 0; 633 int _bufferLength = 0;
634 /** 634 /**
635 * The index of the last character that was read. 635 * The index of the last character that was read.
636 */ 636 */
637 int _charOffset = 0; 637 int _charOffset = 0;
638 /** 638 /**
639 * Initialize a newly created scanner to scan the characters in the given char acter buffer. 639 * Initialize a newly created scanner to scan the characters in the given char acter buffer.
640 * @param source the source being scanned 640 * @param source the source being scanned
641 * @param buffer the buffer from which characters will be read 641 * @param buffer the buffer from which characters will be read
642 */ 642 */
643 CharBufferScanner(Source source, CharBuffer buffer) : super(source) { 643 CharBufferScanner(Source source, CharSequence buffer) : super(source) {
644 this._buffer = buffer; 644 this._buffer = buffer;
645 this._bufferLength = buffer.length(); 645 this._bufferLength = buffer.length();
646 this._charOffset = -1; 646 this._charOffset = -1;
647 } 647 }
648 int get offset => _charOffset; 648 int get offset => _charOffset;
649 int advance() { 649 int advance() {
650 if (++_charOffset < _bufferLength) { 650 if (++_charOffset < _bufferLength) {
651 return _buffer.charAt(_charOffset); 651 return _buffer.charAt(_charOffset);
652 } 652 }
653 _charOffset = _bufferLength; 653 _charOffset = _bufferLength;
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 */ 1324 */
1325 void set element(HtmlElementImpl element18) { 1325 void set element(HtmlElementImpl element18) {
1326 this._element = element18; 1326 this._element = element18;
1327 } 1327 }
1328 void visitChildren(XmlVisitor<Object> visitor) { 1328 void visitChildren(XmlVisitor<Object> visitor) {
1329 for (XmlTagNode node in _tagNodes) { 1329 for (XmlTagNode node in _tagNodes) {
1330 node.accept(visitor); 1330 node.accept(visitor);
1331 } 1331 }
1332 } 1332 }
1333 } 1333 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698