| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'package:barback/barback.dart'; | 6 import 'package:barback/barback.dart'; |
| 7 import 'package:observe/transform.dart'; | 7 import 'package:observe/transform.dart'; |
| 8 import 'package:unittest/compact_vm_config.dart'; | 8 import 'package:unittest/compact_vm_config.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 void addOutput(Asset output) { | 156 void addOutput(Asset output) { |
| 157 outs.add(output); | 157 outs.add(output); |
| 158 } | 158 } |
| 159 | 159 |
| 160 readInput(id) => throw new UnimplementedError(); | 160 readInput(id) => throw new UnimplementedError(); |
| 161 readInputAsString(id, {encoding}) => throw new UnimplementedError(); | 161 readInputAsString(id, {encoding}) => throw new UnimplementedError(); |
| 162 | 162 |
| 163 static void _mockLogFn(AssetId asset, LogLevel level, String message, | 163 static void _mockLogFn(AssetId asset, LogLevel level, String message, |
| 164 Span span) { | 164 span) { |
| 165 // Do nothing. | 165 // Do nothing. |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 | 168 |
| 169 String _sampleObservable(String annotation) => ''' | 169 String _sampleObservable(String annotation) => ''' |
| 170 library A_foo; | 170 library A_foo; |
| 171 import 'package:observe/observe.dart'; | 171 import 'package:observe/observe.dart'; |
| 172 | 172 |
| 173 class A extends Observable { | 173 class A extends Observable { |
| 174 @$annotation int foo; | 174 @$annotation int foo; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 " Foo\n" | 207 " Foo\n" |
| 208 " get foo => __\$foo; Foo __\$foo/*D*/= 1; " | 208 " get foo => __\$foo; Foo __\$foo/*D*/= 1; " |
| 209 "${_makeSetter('Foo', 'foo')} " | 209 "${_makeSetter('Foo', 'foo')} " |
| 210 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; " | 210 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; " |
| 211 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n" | 211 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n" |
| 212 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; " | 212 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; " |
| 213 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n" | 213 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n" |
| 214 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; " | 214 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; " |
| 215 "${_makeSetter('dynamic', 'baz')}\n" | 215 "${_makeSetter('dynamic', 'baz')}\n" |
| 216 "}\n"; | 216 "}\n"; |
| OLD | NEW |