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

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

Issue 137143010: New analyzer snapshot. (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 // 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.ast; 8 library engine.ast;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 6119 matching lines...) Expand 10 before | Expand all | Expand 10 after
6130 * @coverage dart.engine.ast 6130 * @coverage dart.engine.ast
6131 */ 6131 */
6132 abstract class Identifier extends Expression { 6132 abstract class Identifier extends Expression {
6133 /** 6133 /**
6134 * Return `true` if the given name is visible only within the library in which it is 6134 * Return `true` if the given name is visible only within the library in which it is
6135 * declared. 6135 * declared.
6136 * 6136 *
6137 * @param name the name being tested 6137 * @param name the name being tested
6138 * @return `true` if the given name is private 6138 * @return `true` if the given name is private
6139 */ 6139 */
6140 static bool isPrivateName(String name) => name.startsWith("_"); 6140 static bool isPrivateName(String name) => StringUtilities.startsWithChar(name, 0x5F);
6141 6141
6142 /** 6142 /**
6143 * Return the best element available for this operator. If resolution was able to find a better 6143 * Return the best element available for this operator. If resolution was able to find a better
6144 * element based on type propagation, that element will be returned. Otherwise , the element found 6144 * element based on type propagation, that element will be returned. Otherwise , the element found
6145 * using the result of static analysis will be returned. If resolution has not been performed, 6145 * using the result of static analysis will be returned. If resolution has not been performed,
6146 * then `null` will be returned. 6146 * then `null` will be returned.
6147 * 6147 *
6148 * @return the best element available for this operator 6148 * @return the best element available for this operator
6149 */ 6149 */
6150 Element get bestElement; 6150 Element get bestElement;
(...skipping 3981 matching lines...) Expand 10 before | Expand all | Expand 10 after
10132 /** 10132 /**
10133 * Return `true` if this string literal is a multi-line string. 10133 * Return `true` if this string literal is a multi-line string.
10134 * 10134 *
10135 * @return `true` if this string literal is a multi-line string 10135 * @return `true` if this string literal is a multi-line string
10136 */ 10136 */
10137 bool get isMultiline { 10137 bool get isMultiline {
10138 String lexeme = literal.lexeme; 10138 String lexeme = literal.lexeme;
10139 if (lexeme.length < 6) { 10139 if (lexeme.length < 6) {
10140 return false; 10140 return false;
10141 } 10141 }
10142 return lexeme.endsWith("\"\"\"") || lexeme.endsWith("'''"); 10142 return StringUtilities.endsWith3(lexeme, 0x22, 0x22, 0x22) || StringUtilitie s.endsWith3(lexeme, 0x27, 0x27, 0x27);
10143 } 10143 }
10144 10144
10145 /** 10145 /**
10146 * Return `true` if this string literal is a raw string. 10146 * Return `true` if this string literal is a raw string.
10147 * 10147 *
10148 * @return `true` if this string literal is a raw string 10148 * @return `true` if this string literal is a raw string
10149 */ 10149 */
10150 bool get isRaw => literal.lexeme.codeUnitAt(0) == 0x72; 10150 bool get isRaw => literal.lexeme.codeUnitAt(0) == 0x72;
10151 10151
10152 bool get isSynthetic => literal.isSynthetic; 10152 bool get isSynthetic => literal.isSynthetic;
(...skipping 6304 matching lines...) Expand 10 before | Expand all | Expand 10 after
16457 } 16457 }
16458 void operator[]=(int index, E node) { 16458 void operator[]=(int index, E node) {
16459 if (index < 0 || index >= _elements.length) { 16459 if (index < 0 || index >= _elements.length) {
16460 throw new RangeError("Index: ${index}, Size: ${_elements.length}"); 16460 throw new RangeError("Index: ${index}, Size: ${_elements.length}");
16461 } 16461 }
16462 owner.becomeParentOf(node); 16462 owner.becomeParentOf(node);
16463 _elements[index] = node; 16463 _elements[index] = node;
16464 } 16464 }
16465 int get length => _elements.length; 16465 int get length => _elements.length;
16466 } 16466 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698