OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import 'dart:collection' show IterableMixin; | 5 import 'dart:collection' show IterableMixin; |
6 | 6 |
7 import 'package:front_end/src/fasta/fasta_codes.dart' show FastaMessage; | 7 import 'package:front_end/src/fasta/fasta_codes.dart' show FastaMessage; |
8 import 'package:front_end/src/fasta/scanner.dart' show Token; | 8 import 'package:front_end/src/fasta/scanner.dart' show Token; |
9 import 'package:front_end/src/fasta/scanner/token_constants.dart' as Tokens | 9 import 'package:front_end/src/fasta/scanner/token_constants.dart' as Tokens |
10 show PLUS_TOKEN; | 10 show PLUS_TOKEN; |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 // No string quotes with 2 characters. | 1277 // No string quotes with 2 characters. |
1278 null, | 1278 null, |
1279 null, | 1279 null, |
1280 null, | 1280 null, |
1281 null, | 1281 null, |
1282 // Multiline quotings. | 1282 // Multiline quotings. |
1283 const StringQuoting($SQ, raw: false, leftQuoteLength: 3), | 1283 const StringQuoting($SQ, raw: false, leftQuoteLength: 3), |
1284 const StringQuoting($SQ, raw: true, leftQuoteLength: 3), | 1284 const StringQuoting($SQ, raw: true, leftQuoteLength: 3), |
1285 const StringQuoting($DQ, raw: false, leftQuoteLength: 3), | 1285 const StringQuoting($DQ, raw: false, leftQuoteLength: 3), |
1286 const StringQuoting($DQ, raw: true, leftQuoteLength: 3), | 1286 const StringQuoting($DQ, raw: true, leftQuoteLength: 3), |
1287 // Leading single whitespace or espaped newline. | 1287 // Leading single whitespace or escaped newline. |
1288 const StringQuoting($SQ, raw: false, leftQuoteLength: 4), | 1288 const StringQuoting($SQ, raw: false, leftQuoteLength: 4), |
1289 const StringQuoting($SQ, raw: true, leftQuoteLength: 4), | 1289 const StringQuoting($SQ, raw: true, leftQuoteLength: 4), |
1290 const StringQuoting($DQ, raw: false, leftQuoteLength: 4), | 1290 const StringQuoting($DQ, raw: false, leftQuoteLength: 4), |
1291 const StringQuoting($DQ, raw: true, leftQuoteLength: 4), | 1291 const StringQuoting($DQ, raw: true, leftQuoteLength: 4), |
1292 // Other combinations of leading whitespace and/or escaped newline. | 1292 // Other combinations of leading whitespace and/or escaped newline. |
1293 const StringQuoting($SQ, raw: false, leftQuoteLength: 5), | 1293 const StringQuoting($SQ, raw: false, leftQuoteLength: 5), |
1294 const StringQuoting($SQ, raw: true, leftQuoteLength: 5), | 1294 const StringQuoting($SQ, raw: true, leftQuoteLength: 5), |
1295 const StringQuoting($DQ, raw: false, leftQuoteLength: 5), | 1295 const StringQuoting($DQ, raw: false, leftQuoteLength: 5), |
1296 const StringQuoting($DQ, raw: true, leftQuoteLength: 5), | 1296 const StringQuoting($DQ, raw: true, leftQuoteLength: 5), |
1297 const StringQuoting($SQ, raw: false, leftQuoteLength: 6), | 1297 const StringQuoting($SQ, raw: false, leftQuoteLength: 6), |
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3283 */ | 3283 */ |
3284 Object getTreeElement(TreeElementMixin node) => node._element; | 3284 Object getTreeElement(TreeElementMixin node) => node._element; |
3285 | 3285 |
3286 /** | 3286 /** |
3287 * Do not call this method directly. Instead, use an instance of | 3287 * Do not call this method directly. Instead, use an instance of |
3288 * TreeElements. | 3288 * TreeElements. |
3289 */ | 3289 */ |
3290 void setTreeElement(TreeElementMixin node, Object value) { | 3290 void setTreeElement(TreeElementMixin node, Object value) { |
3291 node._element = value; | 3291 node._element = value; |
3292 } | 3292 } |
OLD | NEW |