| 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 "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import "package:async_helper/async_helper.dart"; | 6 import "package:async_helper/async_helper.dart"; |
| 7 import 'mock_compiler.dart'; | 7 import 'mock_compiler.dart'; |
| 8 | 8 |
| 9 import 'package:compiler/src/source_file.dart'; | 9 import 'package:compiler/implementation/source_file.dart'; |
| 10 import 'package:compiler/src/dart2jslib.dart'; | 10 import 'package:compiler/implementation/dart2jslib.dart'; |
| 11 | 11 |
| 12 const String PRIVATE_SOURCE_URI = 'src:private'; | 12 const String PRIVATE_SOURCE_URI = 'src:private'; |
| 13 const String PRIVATE_SOURCE = ''' | 13 const String PRIVATE_SOURCE = ''' |
| 14 | 14 |
| 15 var _privateVariable; | 15 var _privateVariable; |
| 16 void _privateFunction() {} | 16 void _privateFunction() {} |
| 17 | 17 |
| 18 class _PrivateClass { | 18 class _PrivateClass { |
| 19 _PrivateClass(); | 19 _PrivateClass(); |
| 20 _PrivateClass.publicConstructor(); | 20 _PrivateClass.publicConstructor(); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Call public getter on public class. | 158 // Call public getter on public class. |
| 159 analyze('var value = publicClass.publicGetter;'); | 159 analyze('var value = publicClass.publicGetter;'); |
| 160 // Call public setter on public class. | 160 // Call public setter on public class. |
| 161 analyze('publicClass.publicSetter = 0;'); | 161 analyze('publicClass.publicSetter = 0;'); |
| 162 // Access public method on public class. | 162 // Access public method on public class. |
| 163 analyze('var value = publicClass.publicMethod;'); | 163 analyze('var value = publicClass.publicMethod;'); |
| 164 // Call public method on public class. | 164 // Call public method on public class. |
| 165 analyze('publicClass.publicMethod();'); | 165 analyze('publicClass.publicMethod();'); |
| 166 } | 166 } |
| 167 | 167 |
| OLD | NEW |