| 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/transformer.dart'; | 7 import 'package:observe/transformer.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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 void addOutput(Asset output) { | 157 void addOutput(Asset output) { |
| 158 outs.add(output); | 158 outs.add(output); |
| 159 } | 159 } |
| 160 | 160 |
| 161 void consumePrimary() { | 161 void consumePrimary() { |
| 162 shouldConsumePrimary = true; | 162 shouldConsumePrimary = true; |
| 163 } | 163 } |
| 164 | 164 |
| 165 readInput(id) => throw new UnimplementedError(); | 165 readInput(id) => throw new UnimplementedError(); |
| 166 readInputAsString(id, {encoding}) => throw new UnimplementedError(); | 166 readInputAsString(id, {encoding}) => throw new UnimplementedError(); |
| 167 hsaInput(id) => throw new UnimplementedError(); | 167 hasInput(id) => throw new UnimplementedError(); |
| 168 | 168 |
| 169 static void _mockLogFn(AssetId asset, LogLevel level, String message, | 169 static void _mockLogFn(AssetId asset, LogLevel level, String message, |
| 170 span) { | 170 span) { |
| 171 // Do nothing. | 171 // Do nothing. |
| 172 } | 172 } |
| 173 } | 173 } |
| 174 | 174 |
| 175 String _sampleObservable(String annotation) => ''' | 175 String _sampleObservable(String annotation) => ''' |
| 176 library A_foo; | 176 library A_foo; |
| 177 import 'package:observe/observe.dart'; | 177 import 'package:observe/observe.dart'; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 " Foo\n" | 213 " Foo\n" |
| 214 " get foo => __\$foo; Foo __\$foo/*D*/= 1; " | 214 " get foo => __\$foo; Foo __\$foo/*D*/= 1; " |
| 215 "${_makeSetter('Foo', 'foo')} " | 215 "${_makeSetter('Foo', 'foo')} " |
| 216 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; " | 216 "@reflectable @$meta @otherMetadata Foo get bar => __\$bar; " |
| 217 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n" | 217 "Foo __\$bar =/*A*/2/*B*/; ${_makeSetter('Foo', 'bar')}\n" |
| 218 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; " | 218 " @reflectable @$meta @otherMetadata Foo get quux => __\$quux; " |
| 219 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n" | 219 "Foo __\$quux/*C*/; ${_makeSetter('Foo', 'quux')}\n\n" |
| 220 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; " | 220 " @reflectable @$meta dynamic get baz => __\$baz; dynamic __\$baz; " |
| 221 "${_makeSetter('dynamic', 'baz')}\n" | 221 "${_makeSetter('dynamic', 'baz')}\n" |
| 222 "}\n"; | 222 "}\n"; |
| OLD | NEW |