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

Issue 9270016: Issue 932. Checks for various named arguments cases. (Closed)

Created:
8 years, 11 months ago by scheglov
Modified:
8 years, 11 months ago
Reviewers:
zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Issue 932. Checks for various named arguments cases. http://code.google.com/p/dart/issues/detail?id=932 1. Clean up List<? extends Type>; 2. Generate compile time warnings/errors. 3. Generate run time errors. 4. Fix corresponding tests according to spec. R=zundel@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=3511

Patch Set 1 #

Total comments: 18

Patch Set 2 : Tweaks for comments, changes in tests. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -182 lines) Patch
M compiler/java/com/google/dart/compiler/backend/common/TypeHeuristicImplementation.java View 2 chunks +4 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationGenerator.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java View 3 chunks +3 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java View 1 4 chunks +8 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/backend/js/RuntimeTypeInjector.java View 7 chunks +7 lines, -7 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 2 chunks +5 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ClassElement.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java View 1 chunk +1 line, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 1 2 chunks +3 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java View 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java View 1 2 chunks +7 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java View 2 chunks +2 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/DynamicType.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/type/DynamicTypeImplementation.java View 3 chunks +5 lines, -5 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/FunctionAliasTypeImplementation.java View 2 chunks +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/FunctionType.java View 2 chunks +7 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/type/FunctionTypeImplementation.java View 2 chunks +3 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/InterfaceType.java View 1 chunk +3 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/InterfaceTypeImplementation.java View 5 chunks +8 lines, -8 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/Type.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 8 chunks +72 lines, -22 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeVariableImplementation.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/type/Types.java View 4 chunks +10 lines, -8 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/VoidType.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 1 1 chunk +11 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java View 1 chunk +3 lines, -2 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 1 4 chunks +57 lines, -4 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java View 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-compiler.status View 1 1 chunk +0 lines, -3 lines 0 comments Download
M tests/language/language.status View 1 3 chunks +11 lines, -5 lines 0 comments Download
M tests/language/language-leg.status View 1 1 chunk +5 lines, -0 lines 0 comments Download
M tests/language/src/NamedParameters10NegativeTest.dart View 1 1 chunk +0 lines, -22 lines 0 comments Download
M tests/language/src/NamedParameters2NegativeTest.dart View 1 1 chunk +0 lines, -25 lines 0 comments Download
A tests/language/src/NamedParameters2Test.dart View 1 1 chunk +19 lines, -0 lines 0 comments Download
M tests/language/src/NamedParameters3NegativeTest.dart View 1 1 chunk +0 lines, -25 lines 0 comments Download
A tests/language/src/NamedParameters3Test.dart View 1 1 chunk +19 lines, -0 lines 2 comments Download
A + tests/language/src/NamedParameters4Test.dart View 1 2 chunks +6 lines, -4 lines 0 comments Download
M tests/language/src/NamedParametersNegativeTest.dart View 1 chunk +1 line, -6 lines 0 comments Download
M tests/language/src/NamedParametersTest.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scheglov
8 years, 11 months ago (2012-01-20 18:33:37 UTC) #1
zundel
https://chromiumcodereview.appspot.com/9270016/diff/1/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java File compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java (right): https://chromiumcodereview.appspot.com/9270016/diff/1/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java#newcode2845 compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java:2845: // May be specified named arguments without corresponding named ...
8 years, 11 months ago (2012-01-23 16:18:21 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/9270016/diff/1/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java File compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java (right): https://chromiumcodereview.appspot.com/9270016/diff/1/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java#newcode2845 compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java:2845: // May be specified named arguments without corresponding named ...
8 years, 11 months ago (2012-01-23 19:32:27 UTC) #3
zundel
lgtm https://chromiumcodereview.appspot.com/9270016/diff/75/tests/language/src/NamedParameters3Test.dart File tests/language/src/NamedParameters3Test.dart (right): https://chromiumcodereview.appspot.com/9270016/diff/75/tests/language/src/NamedParameters3Test.dart#newcode18 tests/language/src/NamedParameters3Test.dart:18: Expect.equals(true, foundError); I think that NamedParameters10NegativeTest is slightly ...
8 years, 11 months ago (2012-01-23 19:39:19 UTC) #4
zundel
Oh, I forgot, we need to update the year of the copyright notice on files ...
8 years, 11 months ago (2012-01-23 19:42:29 UTC) #5
scheglov
8 years, 11 months ago (2012-01-23 20:00:44 UTC) #6
I've updated year in changed source and test files.

https://chromiumcodereview.appspot.com/9270016/diff/75/tests/language/src/Nam...
File tests/language/src/NamedParameters3Test.dart (right):

https://chromiumcodereview.appspot.com/9270016/diff/75/tests/language/src/Nam...
tests/language/src/NamedParameters3Test.dart:18: Expect.equals(true,
foundError);
On 2012/01/23 19:39:19, zundel wrote:
> I think that NamedParameters10NegativeTest is slightly different, in that the
> method being called had only one positional parameter and no named parameters.

> Could you just fold that into this test to make sure we don't lose coverage
for
> that corner case that NamedParameters10NegativeTest was added for?

Actually NamedParameters10NegativeTest was replaced by NamedParameters4Test, not
by this test.

Powered by Google App Engine
This is Rietveld 408576698