| 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:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:async_helper/async_helper.dart'; | 7 import 'package:async_helper/async_helper.dart'; |
| 8 import 'package:compiler/src/diagnostics/messages.dart' show MessageKind; |
| 8 import 'package:compiler/src/io/source_file.dart'; | 9 import 'package:compiler/src/io/source_file.dart'; |
| 9 import 'package:compiler/src/messages.dart' show MessageKind; | |
| 10 | 10 |
| 11 import 'mock_compiler.dart'; | 11 import 'mock_compiler.dart'; |
| 12 | 12 |
| 13 const String PRIVATE_SOURCE_URI = 'src:private'; | 13 const String PRIVATE_SOURCE_URI = 'src:private'; |
| 14 const String PRIVATE_SOURCE = ''' | 14 const String PRIVATE_SOURCE = ''' |
| 15 | 15 |
| 16 var _privateVariable; | 16 var _privateVariable; |
| 17 void _privateFunction() {} | 17 void _privateFunction() {} |
| 18 | 18 |
| 19 class _PrivateClass { | 19 class _PrivateClass { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 analyze('var value = publicClass.publicGetter;'), | 164 analyze('var value = publicClass.publicGetter;'), |
| 165 // Call public setter on public class. | 165 // Call public setter on public class. |
| 166 analyze('publicClass.publicSetter = 0;'), | 166 analyze('publicClass.publicSetter = 0;'), |
| 167 // Access public method on public class. | 167 // Access public method on public class. |
| 168 analyze('var value = publicClass.publicMethod;'), | 168 analyze('var value = publicClass.publicMethod;'), |
| 169 // Call public method on public class. | 169 // Call public method on public class. |
| 170 analyze('publicClass.publicMethod();'), | 170 analyze('publicClass.publicMethod();'), |
| 171 ], (f) => f())); | 171 ], (f) => f())); |
| 172 } | 172 } |
| 173 | 173 |
| OLD | NEW |