Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: compiler/java/com/google/dart/compiler/testing/TestCompilerConfiguration.java

Issue 8949055: Issue 250: Allow for GNU formatted errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks to drop 'gnu' and stuff library in message format Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698