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

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

Issue 229653004: New analyzer snapshot with MapIterator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/error.dart ('k') | pkg/analyzer/lib/src/generated/index.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.html; 8 library engine.html;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 return text.substring(1, len - 1); 1246 return text.substring(1, len - 1);
1247 } else { 1247 } else {
1248 return text.substring(1); 1248 return text.substring(1);
1249 } 1249 }
1250 } 1250 }
1251 } 1251 }
1252 return text; 1252 return text;
1253 } 1253 }
1254 1254
1255 /** 1255 /**
1256 * Answer the offset of the value after the leading quote.
1257 *
1258 * @return the offset of the value, or `-1` if the value is not specified
1259 */
1260 int get textOffset {
1261 if (_value == null) {
1262 return -1;
1263 }
1264 String text = _value.lexeme;
1265 if (StringUtilities.startsWithChar(text, 0x22) || StringUtilities.startsWith Char(text, 0x27)) {
1266 return _value.offset + 1;
1267 }
1268 return _value.offset;
1269 }
1270
1271 /**
1256 * Answer the attribute value token. A properly formed value will start and en d with matching 1272 * Answer the attribute value token. A properly formed value will start and en d with matching
1257 * quote characters, but the value returned may not be properly formed. 1273 * quote characters, but the value returned may not be properly formed.
1258 * 1274 *
1259 * @return the value token or `null` if this represents a badly formed attribu te 1275 * @return the value token or `null` if this represents a badly formed attribu te
1260 */ 1276 */
1261 Token get valueToken => _value; 1277 Token get valueToken => _value;
1262 1278
1263 @override 1279 @override
1264 void visitChildren(XmlVisitor visitor) { 1280 void visitChildren(XmlVisitor visitor) {
1265 } 1281 }
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 super.element = element; 2021 super.element = element;
2006 } 2022 }
2007 2023
2008 @override 2024 @override
2009 void visitChildren(XmlVisitor visitor) { 2025 void visitChildren(XmlVisitor visitor) {
2010 for (XmlTagNode node in _tagNodes) { 2026 for (XmlTagNode node in _tagNodes) {
2011 node.accept(visitor); 2027 node.accept(visitor);
2012 } 2028 }
2013 } 2029 }
2014 } 2030 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/error.dart ('k') | pkg/analyzer/lib/src/generated/index.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698