| 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_test; | 8 library engine.ast_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 expect(new SimpleStringLiteral( | 1298 expect(new SimpleStringLiteral( |
| 1299 TokenFactory.tokenFromString("'''X'''"), "X").contentsOffset, 3); | 1299 TokenFactory.tokenFromString("'''X'''"), "X").contentsOffset, 3); |
| 1300 expect(new SimpleStringLiteral( | 1300 expect(new SimpleStringLiteral( |
| 1301 TokenFactory.tokenFromString("r'X'"), "X").contentsOffset, 2); | 1301 TokenFactory.tokenFromString("r'X'"), "X").contentsOffset, 2); |
| 1302 expect(new SimpleStringLiteral( | 1302 expect(new SimpleStringLiteral( |
| 1303 TokenFactory.tokenFromString("r\"X\""), "X").contentsOffset, 2); | 1303 TokenFactory.tokenFromString("r\"X\""), "X").contentsOffset, 2); |
| 1304 expect(new SimpleStringLiteral( | 1304 expect(new SimpleStringLiteral( |
| 1305 TokenFactory.tokenFromString("r\"\"\"X\"\"\""), "X").contentsOffset, 4); | 1305 TokenFactory.tokenFromString("r\"\"\"X\"\"\""), "X").contentsOffset, 4); |
| 1306 expect(new SimpleStringLiteral( | 1306 expect(new SimpleStringLiteral( |
| 1307 TokenFactory.tokenFromString("r'''X'''"), "X").contentsOffset, 4); | 1307 TokenFactory.tokenFromString("r'''X'''"), "X").contentsOffset, 4); |
| 1308 // leading whitespace |
| 1309 expect(new SimpleStringLiteral( |
| 1310 TokenFactory.tokenFromString("''' \ \nX''"), "X").contentsOffset, 6); |
| 1311 expect(new SimpleStringLiteral( |
| 1312 TokenFactory.tokenFromString('r""" \ \nX"""'), "X").contentsOffset, 7); |
| 1308 } | 1313 } |
| 1309 | 1314 |
| 1310 void test_isMultiline() { | 1315 void test_isMultiline() { |
| 1311 expect(new SimpleStringLiteral( | 1316 expect(new SimpleStringLiteral( |
| 1312 TokenFactory.tokenFromString("'X'"), "X").isMultiline, isFalse); | 1317 TokenFactory.tokenFromString("'X'"), "X").isMultiline, isFalse); |
| 1313 expect(new SimpleStringLiteral( | 1318 expect(new SimpleStringLiteral( |
| 1314 TokenFactory.tokenFromString("r'X'"), "X").isMultiline, isFalse); | 1319 TokenFactory.tokenFromString("r'X'"), "X").isMultiline, isFalse); |
| 1315 expect(new SimpleStringLiteral( | 1320 expect(new SimpleStringLiteral( |
| 1316 TokenFactory.tokenFromString("\"X\""), "X").isMultiline, isFalse); | 1321 TokenFactory.tokenFromString("\"X\""), "X").isMultiline, isFalse); |
| 1317 expect(new SimpleStringLiteral( | 1322 expect(new SimpleStringLiteral( |
| (...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3222 static const List<WrapperKind> values = const [ | 3227 static const List<WrapperKind> values = const [ |
| 3223 PREFIXED_LEFT, | 3228 PREFIXED_LEFT, |
| 3224 PREFIXED_RIGHT, | 3229 PREFIXED_RIGHT, |
| 3225 PROPERTY_LEFT, | 3230 PROPERTY_LEFT, |
| 3226 PROPERTY_RIGHT, | 3231 PROPERTY_RIGHT, |
| 3227 NONE | 3232 NONE |
| 3228 ]; | 3233 ]; |
| 3229 | 3234 |
| 3230 const WrapperKind(String name, int ordinal) : super(name, ordinal); | 3235 const WrapperKind(String name, int ordinal) : super(name, ordinal); |
| 3231 } | 3236 } |
| OLD | NEW |