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

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

Issue 25373002: Issue 13584. Fix for Java/Dart local variable scoping mismatch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | 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 library engine.html; 3 library engine.html;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'java_engine.dart'; 6 import 'java_engine.dart';
7 import 'source.dart'; 7 import 'source.dart';
8 import 'element.dart' show HtmlElementImpl; 8 import 'element.dart' show HtmlElementImpl;
9 import 'engine.dart' show AnalysisEngine; 9 import 'engine.dart' show AnalysisEngine;
10 /** 10 /**
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 * range. 203 * range.
204 * 204 *
205 * @return the offset from the beginning of the file to the first character in the node's source 205 * @return the offset from the beginning of the file to the first character in the node's source
206 * range 206 * range
207 */ 207 */
208 int get offset { 208 int get offset {
209 Token beginToken = this.beginToken; 209 Token beginToken = this.beginToken;
210 if (beginToken == null) { 210 if (beginToken == null) {
211 return -1; 211 return -1;
212 } 212 }
213 return beginToken.offset; 213 return this.beginToken.offset;
214 } 214 }
215 215
216 /** 216 /**
217 * Return this node's parent node, or `null` if this node is the root of an AS T structure. 217 * Return this node's parent node, or `null` if this node is the root of an AS T structure.
218 * 218 *
219 * Note that the relationship between an AST node and its parent node may chan ge over the lifetime 219 * Note that the relationship between an AST node and its parent node may chan ge over the lifetime
220 * of a node. 220 * of a node.
221 * 221 *
222 * @return the parent of this node, or `null` if none 222 * @return the parent of this node, or `null` if none
223 */ 223 */
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 * the scanner has not yet scanned the source code, and one (1) past the end o f the source code if 390 * the scanner has not yet scanned the source code, and one (1) past the end o f the source code if
391 * the source code has been scanned. 391 * the source code has been scanned.
392 * 392 *
393 * @return the current offset of the scanner in the source 393 * @return the current offset of the scanner in the source
394 */ 394 */
395 int get offset; 395 int get offset;
396 396
397 /** 397 /**
398 * Set array of element tags for which the content between tags should be cons ider a single token. 398 * Set array of element tags for which the content between tags should be cons ider a single token.
399 */ 399 */
400 void set passThroughElements(List<String> passThroughElements2) { 400 void set passThroughElements(List<String> passThroughElements) {
401 this._passThroughElements = passThroughElements2 != null ? passThroughElemen ts2 : _NO_PASS_THROUGH_ELEMENTS; 401 this._passThroughElements = passThroughElements != null ? passThroughElement s : _NO_PASS_THROUGH_ELEMENTS;
402 } 402 }
403 403
404 /** 404 /**
405 * Scan the source code to produce a list of tokens representing the source. 405 * Scan the source code to produce a list of tokens representing the source.
406 * 406 *
407 * @return the first token in the list of tokens that were produced 407 * @return the first token in the list of tokens that were produced
408 */ 408 */
409 Token tokenize() { 409 Token tokenize() {
410 scan(); 410 scan();
411 appendEofToken(); 411 appendEofToken();
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 * 687 *
688 * @param source the source being scanned 688 * @param source the source being scanned
689 * @param string the string from which characters will be read 689 * @param string the string from which characters will be read
690 */ 690 */
691 StringScanner(Source source, String string) : super(source) { 691 StringScanner(Source source, String string) : super(source) {
692 this._string = string; 692 this._string = string;
693 this._stringLength = string.length; 693 this._stringLength = string.length;
694 this._charOffset = -1; 694 this._charOffset = -1;
695 } 695 }
696 int get offset => _charOffset; 696 int get offset => _charOffset;
697 void set offset(int offset2) { 697 void set offset(int offset) {
698 _charOffset = offset2; 698 _charOffset = offset;
699 } 699 }
700 int advance() { 700 int advance() {
701 if (++_charOffset < _stringLength) { 701 if (++_charOffset < _stringLength) {
702 return _string.codeUnitAt(_charOffset); 702 return _string.codeUnitAt(_charOffset);
703 } 703 }
704 _charOffset = _stringLength; 704 _charOffset = _stringLength;
705 return -1; 705 return -1;
706 } 706 }
707 String getString(int start, int endDelta) => _string.substring(start, _charOff set + 1 + endDelta); 707 String getString(int start, int endDelta) => _string.substring(start, _charOff set + 1 + endDelta);
708 int peek() { 708 int peek() {
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 Token _token; 992 Token _token;
993 993
994 /** 994 /**
995 * Construct a new instance to scan the specified source. 995 * Construct a new instance to scan the specified source.
996 * 996 *
997 * @param source the source to be scanned (not `null`) 997 * @param source the source to be scanned (not `null`)
998 */ 998 */
999 HtmlScanner(Source source) { 999 HtmlScanner(Source source) {
1000 this._source = source; 1000 this._source = source;
1001 } 1001 }
1002 void accept(CharBuffer contents, int modificationTime2) { 1002 void accept(CharBuffer contents, int modificationTime) {
1003 this._modificationTime = modificationTime2; 1003 this._modificationTime = modificationTime;
1004 _scanner = new CharBufferScanner(_source, contents); 1004 _scanner = new CharBufferScanner(_source, contents);
1005 _scanner.passThroughElements = _SCRIPT_TAG; 1005 _scanner.passThroughElements = _SCRIPT_TAG;
1006 _token = _scanner.tokenize(); 1006 _token = _scanner.tokenize();
1007 } 1007 }
1008 void accept2(String contents, int modificationTime2) { 1008 void accept2(String contents, int modificationTime) {
1009 this._modificationTime = modificationTime2; 1009 this._modificationTime = modificationTime;
1010 _scanner = new StringScanner(_source, contents); 1010 _scanner = new StringScanner(_source, contents);
1011 _scanner.passThroughElements = _SCRIPT_TAG; 1011 _scanner.passThroughElements = _SCRIPT_TAG;
1012 _token = _scanner.tokenize(); 1012 _token = _scanner.tokenize();
1013 } 1013 }
1014 1014
1015 /** 1015 /**
1016 * Answer the result of scanning the source 1016 * Answer the result of scanning the source
1017 * 1017 *
1018 * @return the result (not `null`) 1018 * @return the result (not `null`)
1019 */ 1019 */
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 this.nodeEnd = nodeEnd; 1347 this.nodeEnd = nodeEnd;
1348 } 1348 }
1349 accept(XmlVisitor visitor) => visitor.visitXmlTagNode(this); 1349 accept(XmlVisitor visitor) => visitor.visitXmlTagNode(this);
1350 1350
1351 /** 1351 /**
1352 * Answer the attribute with the specified name. 1352 * Answer the attribute with the specified name.
1353 * 1353 *
1354 * @param name the attribute name 1354 * @param name the attribute name
1355 * @return the attribute or `null` if no matching attribute is found 1355 * @return the attribute or `null` if no matching attribute is found
1356 */ 1356 */
1357 XmlAttributeNode getAttribute(String name2) { 1357 XmlAttributeNode getAttribute(String name) {
1358 for (XmlAttributeNode attribute in attributes) { 1358 for (XmlAttributeNode attribute in attributes) {
1359 if (attribute.name.lexeme == name2) { 1359 if (attribute.name.lexeme == name) {
1360 return attribute; 1360 return attribute;
1361 } 1361 }
1362 } 1362 }
1363 return null; 1363 return null;
1364 } 1364 }
1365 1365
1366 /** 1366 /**
1367 * Find the attribute with the given name (see [getAttribute] and answer the l exeme 1367 * Find the attribute with the given name (see [getAttribute] and answer the l exeme
1368 * for the attribute's value token without the leading and trailing quotes (se e 1368 * for the attribute's value token without the leading and trailing quotes (se e
1369 * [XmlAttributeNode#getText]). 1369 * [XmlAttributeNode#getText]).
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 } 1526 }
1527 accept(XmlVisitor visitor) => visitor.visitHtmlUnit(this); 1527 accept(XmlVisitor visitor) => visitor.visitHtmlUnit(this);
1528 Token get beginToken => _beginToken; 1528 Token get beginToken => _beginToken;
1529 Token get endToken => _endToken; 1529 Token get endToken => _endToken;
1530 void visitChildren(XmlVisitor visitor) { 1530 void visitChildren(XmlVisitor visitor) {
1531 for (XmlTagNode node in tagNodes) { 1531 for (XmlTagNode node in tagNodes) {
1532 node.accept(visitor); 1532 node.accept(visitor);
1533 } 1533 }
1534 } 1534 }
1535 } 1535 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698