| OLD | NEW |
| 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 16030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16041 /** | 16041 /** |
| 16042 * Return the value of the literal. | 16042 * Return the value of the literal. |
| 16043 * | 16043 * |
| 16044 * @return the value of the literal | 16044 * @return the value of the literal |
| 16045 */ | 16045 */ |
| 16046 String get value => _value; | 16046 String get value => _value; |
| 16047 | 16047 |
| 16048 @override | 16048 @override |
| 16049 bool get isMultiline { | 16049 bool get isMultiline { |
| 16050 String lexeme = literal.lexeme; | 16050 String lexeme = literal.lexeme; |
| 16051 if (lexeme.length < 6) { | 16051 if (lexeme.length < 3) { |
| 16052 return false; | 16052 return false; |
| 16053 } | 16053 } |
| 16054 // skip 'r' | 16054 // skip 'r' |
| 16055 int offset = 0; | 16055 int offset = 0; |
| 16056 if (lexeme.codeUnitAt(0) == 0x72) { | 16056 if (isRaw) { |
| 16057 offset = 1; | 16057 offset = 1; |
| 16058 } | 16058 } |
| 16059 // check prefix | 16059 // check prefix |
| 16060 return StringUtilities.startsWith3(lexeme, offset, 0x22, 0x22, 0x22) || | 16060 return StringUtilities.startsWith3(lexeme, offset, 0x22, 0x22, 0x22) || |
| 16061 StringUtilities.startsWith3(lexeme, offset, 0x27, 0x27, 0x27); | 16061 StringUtilities.startsWith3(lexeme, offset, 0x27, 0x27, 0x27); |
| 16062 } | 16062 } |
| 16063 | 16063 |
| 16064 @override | 16064 @override |
| 16065 bool get isRaw => literal.lexeme.codeUnitAt(0) == 0x72; | 16065 bool get isRaw => literal.lexeme.codeUnitAt(0) == 0x72; |
| 16066 | 16066 |
| (...skipping 3641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19708 _elements[index] = node; | 19708 _elements[index] = node; |
| 19709 } | 19709 } |
| 19710 void clear() { | 19710 void clear() { |
| 19711 _elements = <E> []; | 19711 _elements = <E> []; |
| 19712 } | 19712 } |
| 19713 int get length => _elements.length; | 19713 int get length => _elements.length; |
| 19714 void set length(int value) { | 19714 void set length(int value) { |
| 19715 throw new UnsupportedError("Cannot resize NodeList."); | 19715 throw new UnsupportedError("Cannot resize NodeList."); |
| 19716 } | 19716 } |
| 19717 } | 19717 } |
| OLD | NEW |