OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 package com.google.dart.compiler.testing; | 5 package com.google.dart.compiler.testing; |
6 | 6 |
7 import com.google.dart.compiler.Backend; | 7 import com.google.dart.compiler.Backend; |
8 import com.google.dart.compiler.CommandLineOptions.CompilerOptions; | 8 import com.google.dart.compiler.CommandLineOptions.CompilerOptions; |
9 import com.google.dart.compiler.CompilerConfiguration; | 9 import com.google.dart.compiler.CompilerConfiguration; |
10 import com.google.dart.compiler.DartCompilationPhase; | 10 import com.google.dart.compiler.DartCompilationPhase; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 public boolean expectEntryPoint() { | 94 public boolean expectEntryPoint() { |
95 return false; | 95 return false; |
96 } | 96 } |
97 | 97 |
98 @Override | 98 @Override |
99 public boolean shouldWarnOnNoSuchType() { | 99 public boolean shouldWarnOnNoSuchType() { |
100 return false; | 100 return false; |
101 } | 101 } |
102 | 102 |
103 @Override | 103 @Override |
104 public boolean printMachineProblems() { | |
105 return true; | |
106 } | |
107 | |
108 @Override | |
109 public boolean collectComments() { | 104 public boolean collectComments() { |
110 return false; | 105 return false; |
111 } | 106 } |
112 | 107 |
113 @Override | 108 @Override |
114 public LibrarySource getSystemLibraryFor(String importSpec) { | 109 public LibrarySource getSystemLibraryFor(String importSpec) { |
115 URI systemUri; | 110 URI systemUri; |
116 try { | 111 try { |
117 systemUri = new URI(importSpec); | 112 systemUri = new URI(importSpec); |
118 } catch (URISyntaxException e) { | 113 } catch (URISyntaxException e) { |
119 throw new RuntimeException(e); | 114 throw new RuntimeException(e); |
120 } | 115 } |
121 return new UrlLibrarySource(systemUri, this.systemLibraryManager); | 116 return new UrlLibrarySource(systemUri, this.systemLibraryManager); |
122 } | 117 } |
123 | 118 |
124 @Override | 119 @Override |
125 public CompilerOptions getCompilerOptions() { | 120 public CompilerOptions getCompilerOptions() { |
126 throw new AssertionError(); | 121 throw new AssertionError(); |
127 } | 122 } |
| 123 |
| 124 @Override |
| 125 public ErrorFormat printErrorFormat() { |
| 126 return ErrorFormat.MACHINE; |
| 127 } |
128 } | 128 } |
OLD | NEW |