| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 trydart.test.program_result; | 5 library trydart.test.program_result; |
| 6 | 6 |
| 7 class ProgramResult { | 7 class ProgramResult { |
| 8 final String code; | 8 final String code; |
| 9 | 9 |
| 10 final List<String> messages; | 10 final List<String> messages; |
| 11 | 11 |
| 12 const ProgramResult(this.code, this.messages); | 12 final bool compileUpdatesShouldThrow; |
| 13 |
| 14 const ProgramResult( |
| 15 this.code, this.messages, {this.compileUpdatesShouldThrow: false}); |
| 13 | 16 |
| 14 List<String> messagesWith(String extra) { | 17 List<String> messagesWith(String extra) { |
| 15 return new List<String>.from(messages)..add(extra); | 18 return new List<String>.from(messages)..add(extra); |
| 16 } | 19 } |
| 17 } | 20 } |
| OLD | NEW |