| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library test.src.serialization.elements_test; | 5 library test.src.serialization.elements_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/element.dart'; | 7 import 'package:analyzer/src/generated/element.dart'; |
| 8 import 'package:analyzer/src/generated/engine.dart'; | 8 import 'package:analyzer/src/generated/engine.dart'; |
| 9 import 'package:analyzer/src/generated/resolver.dart' show Namespace; | 9 import 'package:analyzer/src/generated/resolver.dart' show Namespace; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| (...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 | 1379 |
| 1380 test_variable_documented() { | 1380 test_variable_documented() { |
| 1381 checkLibrary(''' | 1381 checkLibrary(''' |
| 1382 // Extra comment so doc comment offset != 0 | 1382 // Extra comment so doc comment offset != 0 |
| 1383 /** | 1383 /** |
| 1384 * Docs | 1384 * Docs |
| 1385 */ | 1385 */ |
| 1386 var x;'''); | 1386 var x;'''); |
| 1387 } | 1387 } |
| 1388 | 1388 |
| 1389 test_variable_final() { |
| 1390 checkLibrary('final int x = 0;'); |
| 1391 } |
| 1392 |
| 1389 test_variable_implicit_type() { | 1393 test_variable_implicit_type() { |
| 1390 checkLibrary('var x;'); | 1394 checkLibrary('var x;'); |
| 1391 } | 1395 } |
| 1392 | 1396 |
| 1393 test_variables() { | 1397 test_variables() { |
| 1394 checkLibrary('int i; int j;'); | 1398 checkLibrary('int i; int j;'); |
| 1395 } | 1399 } |
| 1396 } | 1400 } |
| OLD | NEW |