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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisUtility.java

Issue 10546161: Issue 3516. Make displaying warning for inferred types configurable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisUtility.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisUtility.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisUtility.java
index 115c85247438e326d11bd56312141a0e1e65f180..c6173c9dfd3fe2796afac19517f2b55a0b10c631 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisUtility.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisUtility.java
@@ -48,7 +48,14 @@ import java.util.Set;
*/
class AnalysisUtility {
private static final CompilerConfiguration config = new DefaultCompilerConfiguration(
- new CompilerOptions(),
+ new CompilerOptions() {
+ @Override
+ public boolean suppressNoMemberWarningForInferredTypes() {
+ return DartCore.getPlugin().getPrefs().getBoolean(
+ DartCore.SUPPRESS_NO_MEMBER_FOR_INFERRED_TYPES,
+ false);
+ }
+ },
SystemLibraryManagerProvider.getSystemLibraryManager()) {
@Override
public boolean incremental() {

Powered by Google App Engine
This is Rietveld 408576698