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

Issue 8395013: DartC User Warning Framework (Closed)

Created:
9 years, 2 months ago by scheglov
Modified:
9 years, 1 month ago
Reviewers:
zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

New ErrorCode implementations. R=zundel@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=841

Patch Set 1 #

Total comments: 10

Patch Set 2 : Use new ErrorCode enums in single onError() method. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1061 lines, -1115 lines) Patch
M compiler/java/com/google/dart/compiler/DartCompilationError.java View 1 5 chunks +9 lines, -103 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompiler.java View 1 9 chunks +11 lines, -11 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompilerContext.java View 1 1 chunk +2 lines, -10 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java View 1 1 chunk +19 lines, -202 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompilerListener.java View 1 1 chunk +2 lines, -7 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompilerMainContext.java View 1 4 chunks +17 lines, -23 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DefaultDartCompilerListener.java View 1 5 chunks +17 lines, -23 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DeltaAnalyzer.java View 1 1 chunk +2 lines, -12 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ErrorCode.java View 2 chunks +10 lines, -1 line 0 comments Download
A compiler/java/com/google/dart/compiler/ErrorSeverity.java View 1 chunk +24 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/SubSystem.java View 1 chunk +12 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java View 1 chunk +0 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/ClosureJsBackend.java View 1 1 chunk +5 lines, -4 lines 0 comments Download
A compiler/java/com/google/dart/compiler/backend/js/ClosureJsErrorCode.java View 1 chunk +44 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java View 1 2 chunks +1 line, -2 lines 0 comments Download
A compiler/java/com/google/dart/compiler/backend/js/JsErrorCode.java View 1 chunk +44 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/AbstractParser.java View 1 2 chunks +3 lines, -11 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 34 chunks +47 lines, -48 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java View 1 1 chunk +1 line, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/ParserContext.java View 1 1 chunk +0 lines, -6 lines 0 comments Download
A compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java View 1 1 chunk +83 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CompileTimeConstVisitor.java View 1 7 chunks +7 lines, -8 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java View 1 2 chunks +2 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java View 1 8 chunks +13 lines, -14 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java View 1 9 chunks +11 lines, -17 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolutionErrorListener.java View 1 1 chunk +1 line, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 1 29 chunks +71 lines, -73 lines 0 comments Download
A compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java View 1 1 chunk +129 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java View 1 3 chunks +3 lines, -4 lines 0 comments Download
A compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java View 1 1 chunk +71 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/testing/TestCompilerContext.java View 1 2 chunks +14 lines, -17 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 30 chunks +49 lines, -51 lines 0 comments Download
M compiler/java/com/google/dart/runner/DartRunner.java View 1 3 chunks +1 line, -7 lines 1 comment Download
M compiler/javatests/com/google/dart/compiler/CompilerTestCase.java View 1 1 chunk +8 lines, -12 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java View 1 2 chunks +1 line, -11 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/backend/common/TypeHeuristicImplementationTest.java View 1 1 chunk +1 line, -9 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/common/LibrarySourceFileTest.java View 1 2 chunks +6 lines, -11 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/end2end/NamedParameterTest.java View 1 2 chunks +7 lines, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java View 1 3 chunks +5 lines, -13 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 2 chunks +1 line, -3 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java View 1 3 chunks +2 lines, -9 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/CompileTimeConstantTest.java View 16 chunks +58 lines, -59 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java View 1 2 chunks +9 lines, -7 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java View 1 23 chunks +53 lines, -51 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java View 1 5 chunks +11 lines, -18 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerBench.java View 1 1 chunk +1 line, -9 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java View 27 chunks +119 lines, -119 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java View 1 2 chunks +9 lines, -17 lines 0 comments Download
M compiler/javatests/com/google/dart/corelib/SharedTestCase.java View 1 3 chunks +10 lines, -14 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/builder/CompilerListener.java View 1 2 chunks +10 lines, -12 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/compiler/LoggingDartCompilerListener.java View 1 2 chunks +13 lines, -13 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/compiler/SilentDartCompilerListener.java View 1 1 chunk +1 line, -9 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ErrorRecordingContext.java View 1 2 chunks +1 line, -6 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java View 1 1 chunk +1 line, -11 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java View 1 2 chunks +1 line, -15 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java View 1 2 chunks +2 lines, -12 lines 0 comments Download
M tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scheglov
9 years, 2 months ago (2011-10-25 18:56:26 UTC) #1
scheglov
Right now I created ErrorSeverity, SubSystem and moved all existing errors into appropriate *ErrorCode implementations. ...
9 years, 2 months ago (2011-10-25 19:00:55 UTC) #2
zundel
Maybe we can just commit this without the change to DartCompilerListener. This does most of ...
9 years, 2 months ago (2011-10-25 19:31:02 UTC) #3
zundel
http://codereview.chromium.org/8395013/diff/1/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java File compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java (right): http://codereview.chromium.org/8395013/diff/1/compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java#newcode53 compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java:53: this(ErrorSeverity.ERROR, message); Change to WARNING by default.
9 years, 2 months ago (2011-10-25 19:56:39 UTC) #4
scheglov
http://codereview.chromium.org/8395013/diff/1/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java File compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java (right): http://codereview.chromium.org/8395013/diff/1/compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java#newcode11 compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java:11: ENTRY_POINT_METHOD_CANNOT_HAVE_PARAMETERS("Main entry point method cannot have parameters"), > are ...
9 years, 2 months ago (2011-10-25 20:24:21 UTC) #5
scheglov
9 years, 1 month ago (2011-10-26 20:14:26 UTC) #6
zundel
9 years, 1 month ago (2011-10-27 16:19:54 UTC) #7
LGTM with one nit

http://codereview.chromium.org/8395013/diff/7001/compiler/java/com/google/dar...
File compiler/java/com/google/dart/runner/DartRunner.java (right):

http://codereview.chromium.org/8395013/diff/7001/compiler/java/com/google/dar...
compiler/java/com/google/dart/runner/DartRunner.java:129:
((DefaultErrorFormatter) formatter).setOutputStream(stderr);
this is pretty ugly, could you make an overload constructor to set the output
stream instead?

Powered by Google App Engine
This is Rietveld 408576698