Konstantin Shcheglov
dd8decb695
Fix for explicit 'call' invocation and property get.
...
R=brianwilkerson@google.com , paulberry@google.com
Bug:
Change-Id: I17b11d2cfe53ed69ce251d8a7363f9aaf278e89b
Reviewed-on: https://dart-review.googlesource.com/33145
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2018-01-09 00:18:56 +00:00
Jaime Wren
cd878bc433
Create the new flag --use-cfe in the analyzer, analysis server and analyzer_cli and migrate the old behavior of --preview-dart-2 to --use-cfe. The --preview-dart-2 flag is now a no-op, with functionality coming soon.
...
See https://github.com/dart-lang/sdk/issues/31640
Change-Id: I2db2e7ef6a324cbd5d369b807e331495fed167df
Reviewed-on: https://dart-review.googlesource.com/33121
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Jaime Wren <jwren@google.com >
2018-01-08 22:37:05 +00:00
Konstantin Shcheglov
a8ebc3115c
Use the same rule for inference in expression function bodies as in block bodies.
...
Bug: https://github.com/dart-lang/sdk/issues/31436
Change-Id: I535c39383d42862f035b54e2fb5c143367605697
https://github.com/dart-lang/sdk/issues/31638
Reviewed-on: https://dart-review.googlesource.com/32860
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-07 20:46:31 +00:00
Paul Berry
105b170ddb
Roll package test to 0.12.29+1 and stack_trace to 1.9.0
...
This required some changes to analysis_server, since analysis_server
used to have its own version of pumpEventQueue(). Since
pumpEventQueue() is now provided by the test package, I've removed
analysis_server's version, and I've updated some of the call sites to
pass in "times: 5000" to replicate the old analysis_server behavior.
This also required some changes to analyzer, since the fail() method
is now marked as @alwaysThrows, so no code may follow it without
producing a dead code hint.
Change-Id: Ie5ef3a5cc685c18da02de699e59f63f3bb8865f7
Reviewed-on: https://dart-review.googlesource.com/32683
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2018-01-07 14:22:23 +00:00
Dan Rubel
cdd4268bc8
Revert "Improve fasta field recovery"
...
This reverts commit ab229b30ef .
Reason for revert: Failing co19 test
Original change's description:
> Improve fasta field recovery
>
> In addition to improving field recovery, this CL
> fixes class field recovery to include an endMember event event
> and cleans up missing class body recovery.
>
> Change-Id: I53afe5aef55452108803388de9245f7e14f97833
> Reviewed-on: https://dart-review.googlesource.com/32820
> Commit-Queue: Dan Rubel <danrubel@google.com >
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
TBR=brianwilkerson@google.com ,danrubel@google.com
Change-Id: Id2976bfe67b410875a912bbfd6bfcbbe3d3c8c75
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/32840
Reviewed-by: Dan Rubel <danrubel@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2018-01-07 02:06:32 +00:00
Dan Rubel
ab229b30ef
Improve fasta field recovery
...
In addition to improving field recovery, this CL
fixes class field recovery to include an endMember event event
and cleans up missing class body recovery.
Change-Id: I53afe5aef55452108803388de9245f7e14f97833
Reviewed-on: https://dart-review.googlesource.com/32820
Commit-Queue: Dan Rubel <danrubel@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-06 21:51:50 +00:00
Sam Rawlins
43a86d4a60
Fix a few @visibleForTesting enforcement bugs.
...
Fixes #31742 , #31786 , #31787
Bug: https://github.com/dart-lang/sdk/issues/31786
Change-Id: Iaa9ee2708ee9e89f1dd84a0223114f1415ef8261
Reviewed-on: https://dart-review.googlesource.com/32666
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2018-01-05 23:44:08 +00:00
Mike Fairhurst
e34aae20ce
Fix \#31680 function types in type parameter bounds
...
Bug: 31680
Change-Id: Ib031bb89c3ca1dc3ce96ca10b4d98cf46d7b705b
Reviewed-on: https://dart-review.googlesource.com/32661
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Mike Fairhurst <mfairhurst@google.com >
2018-01-05 20:47:09 +00:00
Dan Rubel
4429c91968
Add fasta parser prefixed type recovery
...
Change-Id: I4985ac2d3c9653521fe6552db54f49d7ed22f84a
Reviewed-on: https://dart-review.googlesource.com/32720
Commit-Queue: Dan Rubel <danrubel@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-05 20:36:19 +00:00
Dan Rubel
86ee5b05d4
Add fasta parser invalid top level member recovery
...
Change-Id: Id343a220d1dd203dfbb31caa50d1e76046081c2a
Reviewed-on: https://dart-review.googlesource.com/32480
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2018-01-05 01:43:06 +00:00
Mike Fairhurst
20c2e06a9d
Partial fix of \#31708, parse error with void generic functions in for loop.
...
Blocked by https://dart-review.googlesource.com/c/sdk/+/32447 , or else
an invalid syntax error would become a crash.
With this CL and that one, \#31708 is fully fixed.
Bug: 31708
Change-Id: Iac92d1e61e275e43fdb2fe841c2fb0fee4aa155e
Reviewed-on: https://dart-review.googlesource.com/32448
Commit-Queue: Mike Fairhurst <mfairhurst@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-05 01:11:56 +00:00
Mike Fairhurst
277274b733
Solve analyzer crash when using a function type in a foreach
...
Looks like the best place to put this is in the type builder, which has
special logic for foreaches. Previously, that special logic did not
include a need to visit the type, but with [GenericFunctionType]s, its
now necessary.
New test added; fails with kernel.
Bug: 31708
Change-Id: I6536be816a84458cf81d9037289ce6415ed13985
Reviewed-on: https://dart-review.googlesource.com/32447
Commit-Queue: Mike Fairhurst <mfairhurst@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-05 00:05:57 +00:00
Konstantin Shcheglov
9f7af9963a
Convert UNDEFINED_SUPER_METHOD errors.
...
We don't grab parsing errors with previewDart2 anymore, because the
same errors are reported during compilation.
R=brianwilkerson@google.com
Bug:
Change-Id: I58dc8c098fe4c8b2009c3adb9cbbbc334a748f61
Reviewed-on: https://dart-review.googlesource.com/32444
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-04 23:00:36 +00:00
Konstantin Shcheglov
2401b16846
Report HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE even if the superclass has noSuchMethod().
...
See the bug.
This does not make it a compile time error though.
R=brianwilkerson@google.com
Bug: https://github.com/dart-lang/sdk/issues/31593
Change-Id: Iefef8eecec43b6b8afaac74198bffbeae1c8b104
Reviewed-on: https://dart-review.googlesource.com/28120
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-04 20:32:05 +00:00
Konstantin Shcheglov
7a65a18f83
Fixes to applying resolution to prefixed annotations.
...
Bug:
Change-Id: I04082a5c3d1047ec9ff908be8b50b4600a2d985f
Reviewed-on: https://dart-review.googlesource.com/32221
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2018-01-04 19:47:45 +00:00
Dan Rubel
1bd529951e
Update fasta parser to allow top level builtins as prefix
...
This CL fixes another place where built-in keywords should be allowed
as a prefix. In addition, this CL cleans up some tests and addresses
a comment in https://dart-review.googlesource.com/c/sdk/+/32300
Change-Id: I693b0049fdc47909a5280e1992d1807757495be6
Reviewed-on: https://dart-review.googlesource.com/32420
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2018-01-04 19:25:26 +00:00
Dan Rubel
f107599b71
Allow builtin to be used as a prefix
...
Change-Id: I90fdaf8e7ec48621be175b2fce4dbc3c3c4cacff
Reviewed-on: https://dart-review.googlesource.com/32380
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2018-01-04 17:59:16 +00:00
Dan Rubel
29f703dd9b
Add fasta parser empty named/optional parameter recovery
...
Change-Id: I440b6cb5aa8b503080e4623a3b87a6046de906a3
Reviewed-on: https://dart-review.googlesource.com/32300
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2018-01-04 17:06:06 +00:00
Dmitry Stefantsov
1f3b493dcc
Add simple instantiate-to-bounds algorithm to the common front-end
...
Bug:
Change-Id: I65097b037f4b02f0a161c9c183844a3dc3339c77
Reviewed-on: https://dart-review.googlesource.com/29880
Reviewed-by: Paul Berry <paulberry@google.com >
2018-01-04 11:31:08 +00:00
Konstantin Shcheglov
ad66944dfd
Resolve references to parameters in named arguments.
...
R=brianwilkerson@google.com
Bug:
Change-Id: I1ae09971b72e1833c21bd6e725981fe99fe02fc4
Reviewed-on: https://dart-review.googlesource.com/32146
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-03 21:58:14 +00:00
Brian Wilkerson
aa593d0a2a
Deal with a flaky test
...
Change-Id: I1d9e2616ce896b100ddfd9490c63db391d7debae
Reviewed-on: https://dart-review.googlesource.com/32180
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2018-01-03 21:11:44 +00:00
Konstantin Shcheglov
76c5a9a6c8
Convert errors from FrontEnd into Analyzer.
...
R=brianwilkerson@google.com , paulberry@google.com
Bug:
Change-Id: I94f219e378437e0bcff3ee8e2ca0598594e59afc
Reviewed-on: https://dart-review.googlesource.com/32143
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2018-01-03 20:05:25 +00:00
Konstantin Shcheglov
f57a0511a4
Apply import prefixes in type annotations.
...
R=brianwilkerson@google.com , paulberry@google.com
Bug:
Change-Id: I185b9860aac8650856c8c13b6784b63f3fe2f379
Reviewed-on: https://dart-review.googlesource.com/32000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2018-01-02 22:34:04 +00:00
Konstantin Shcheglov
57d75d3358
Apply resolution to static field references with import prefixes.
...
Bug:
Change-Id: Ie84c69aea71cd6e5e5c373eba2c4439af524264c
Reviewed-on: https://dart-review.googlesource.com/31747
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2018-01-02 20:20:06 +00:00
Konstantin Shcheglov
6b4ae0c7b6
Apply resolution to instance creation with import prefix.
...
Bug:
Change-Id: Ia032f7e9870531bc7337dc4517f438dacf7779ff
Reviewed-on: https://dart-review.googlesource.com/31746
Reviewed-by: Paul Berry <paulberry@google.com >
2018-01-02 20:15:08 +00:00
Konstantin Shcheglov
6d5f2f09aa
Apply resolution to function expression invocations.
...
Bug:
Change-Id: I895cf9765664f1e9608ec612e4b1897f42cb9d70
Reviewed-on: https://dart-review.googlesource.com/31881
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2018-01-02 19:34:23 +00:00
Konstantin Shcheglov
9b54b25f3e
Fix error reporting when it makes tests behave differently in checked and unchecked modes.
...
R=brianwilkerson@google.com
Bug:
Change-Id: Ib5f7b3c531bfd767e5640ff45e1ad9e7ef0148a9
Reviewed-on: https://dart-review.googlesource.com/31882
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2018-01-02 05:01:34 +00:00
Konstantin Shcheglov
990dba4e08
Apply resolution to import prefixes.
...
R=brianwilkerson@google.com
Bug:
Change-Id: I9598e11b21ea714f06ce33706c467a161091675a
Reviewed-on: https://dart-review.googlesource.com/31840
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2017-12-30 19:32:19 +00:00
Konstantin Shcheglov
b8ff3ae081
Record invocation type arguments, and apply to explicit nodes.
...
R=brianwilkerson@google.com , paulberry@google.com
Bug:
Change-Id: Iccd71aafb4baa2c384e43511527f503003ea7e85
Reviewed-on: https://dart-review.googlesource.com/31760
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2017-12-29 20:31:05 +00:00
Konstantin Shcheglov
fa6f91999c
Resynthetize FunctionType(s) with synthetic element.
...
Use actual element for typedef(s).
R=brianwilkerson@google.com , paulberry@google.com
Bug:
Change-Id: I01163de0a8a3c776e8bdd1bd0973962e687cfbac
Reviewed-on: https://dart-review.googlesource.com/31580
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2017-12-28 20:47:26 +00:00
Aske Simon Christensen
de2ce48e17
Finish type variables earlier so their bounds are available when building the program.
...
Check bounds in verifier.
Fixed an inconsistency in the printing of parent nodes in the verifier.
Closes https://github.com/dart-lang/sdk/issues/30838
Closes https://github.com/dart-lang/sdk/issues/31213
Closes https://github.com/dart-lang/sdk/issues/31700
Change-Id: I328ca2c5bfa01a6753a806abd2510c98fa2b7cfe
Reviewed-on: https://dart-review.googlesource.com/22500
Commit-Queue: Aske Simon Christensen <askesc@google.com >
Reviewed-by: Peter von der Ahé <ahe@google.com >
2017-12-22 11:06:52 +00:00
Dan Rubel
63fa6f24a5
Add fasta parser for statement var recovery
...
Change-Id: I58b54e757e9deede69ecba5a5d4fa200efdb09fa
Reviewed-on: https://dart-review.googlesource.com/30920
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-21 16:55:01 +00:00
Brian Wilkerson
fe031dea8e
Remove support for generic comment syntax from fasta parser
...
Change-Id: Ic9d61a19d03ff537d58fa378d992e02de903bad8
Reviewed-on: https://dart-review.googlesource.com/30921
Reviewed-by: Dan Rubel <danrubel@google.com >
Reviewed-by: Peter von der Ahé <ahe@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2017-12-21 15:18:11 +00:00
Dan Rubel
4e8c6e7862
Add more fasta parser field recovery
...
Change-Id: I8a63e04c80931d2b2e8b24a547cc845837dee5d8
Reviewed-on: https://dart-review.googlesource.com/30625
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-20 00:38:38 +00:00
Dan Rubel
166cc11a64
Add fasta parser function expression recovery
...
Change-Id: Id5e27b8f186da23fd141fda12621f1ae3bcd1f8c
Reviewed-on: https://dart-review.googlesource.com/30580
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-19 20:57:43 +00:00
Brian Wilkerson
f52274630e
Disable a flaky test until it can be investigated
...
Change-Id: Icabacb7c41fe7727757989e3508dc707a8ddb792
Reviewed-on: https://dart-review.googlesource.com/30466
Reviewed-by: Dan Rubel <danrubel@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2017-12-19 19:40:43 +00:00
Dan Rubel
63392bdb36
Add fasta parser import uri recovery
...
Change-Id: If88a4273866ef80f16f2f3fb561dc929c9b16772
Reviewed-on: https://dart-review.googlesource.com/30462
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-19 17:00:24 +00:00
Sam Rawlins
b32a56235e
Analyzer: fix 'ignore:' comments at the end of a line.
...
'//ignore:' comments that sit next to code should not invalidate errors on the
next line.
Fixes https://github.com/dart-lang/sdk/issues/28467
Bug: https://github.com/dart-lang/sdk/issues/28467
Change-Id: I15b1787e5fe4dadcdc72c18409e0b82df11060af
Reviewed-on: https://dart-review.googlesource.com/29548
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2017-12-18 20:07:56 +00:00
Dan Rubel
b04e75d2bf
Add fasta parser top level variable recovery
...
Change-Id: I211519f62c5934fca581a8981db2805362bbecd2
Reviewed-on: https://dart-review.googlesource.com/30324
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-18 20:06:06 +00:00
Dan Rubel
76f30b99f5
Add fasta parser interpolation expression recovery
...
Change-Id: I45942cf29a86feadcd15fe61432681903658f945
Reviewed-on: https://dart-review.googlesource.com/30360
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-18 18:04:46 +00:00
Dan Rubel
51162efc45
Add fasta parser missing switch block recovery
...
This adds fasta parser recovery for missing switch blocks
and removes some redundant error checking code.
Change-Id: I92b875d31f0ada50586f5bd81e5e1c51e0c2ceec
Reviewed-on: https://dart-review.googlesource.com/30321
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-18 17:32:36 +00:00
Dan Rubel
ad9ea873c7
Add fasta parser switch case error checks
...
This refactors fasta parsing of switch statements so that it can
detect `case` statements after `default` statements
and duplicate `default` statements.
Change-Id: If9d2590a3563d0fe8940e9f3ed45375f2bebfa24
Reviewed-on: https://dart-review.googlesource.com/30240
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-18 15:21:36 +00:00
Dan Rubel
fd8c3f8436
Add more fasta parser switch statement recovery
...
This updates the fasta parser to gracefully recover
when a 'case' or 'default' keyword is not followed
by a colon.
In addition, the analyzer error code associated
with the fasta ExpectedButGot error template
has been changed
from UNEXPECTED_TOKEN
to EXPECTED_TOKEN.
Change-Id: Ic1cc01362b2ed796c0a0817504ac6aa9294fa9b3
Reviewed-on: https://dart-review.googlesource.com/30160
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-18 12:23:38 +00:00
Konstantin Shcheglov
31a0fe292d
Remember import prefix name for static references.
...
Bug:
Change-Id: Ib71a9cc8e6c65d597f24c20c0260f7f37ef3674f
Reviewed-on: https://dart-review.googlesource.com/28541
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2017-12-16 05:09:35 +00:00
Brian Wilkerson
439dfe0c29
Revert "Produce an error if there would be an exception thrown by an assert in an initializer list"
...
Change-Id: I21553a5a3bf12b7636d9ef507092d0e19f9c0d57
Reviewed-on: https://dart-review.googlesource.com/30041
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2017-12-16 01:44:13 +00:00
Dan Rubel
028773e032
Add fasta parser missing switch case recovery
...
Change-Id: I102586df07cf9178e47b5bb05e8b27af57f393c5
Reviewed-on: https://dart-review.googlesource.com/29920
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-16 01:34:53 +00:00
Brian Wilkerson
71dd8acda1
Produce an error if there would be an exception thrown by an assert in an initializer list
...
Change-Id: Ia95b2e09c64846d319d940e29c422355ab972da6
Reviewed-on: https://dart-review.googlesource.com/29700
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2017-12-15 23:03:15 +00:00
Paul Berry
ae9b0c42d7
Add type inference code to generate Instantiation nodes.
...
Fixes #31586 .
Note that none of the back-ends handle Instantiation nodes yet, so the
language_2 tests added in this CL
(instantiate_tearoff_after_contravariance_check_test,
instantiate_tearoff_of_call_test, and instantiate_tearoff_test) fail
pretty much across the board right now.
Includes two fixes to Instantiation.getStaticType and the kernel type checker:
- Previously, they attempted to perform substitution on the full
function type, which had no effect because the type parameters were
bound.
- The type checker was not checking that type parameter bounds were
satisfied.
Note that the front end doesn't yet check that type parameter bounds
are satisfied by the inferred type parameters. I will address that in
a follow-up CL.
Change-Id: Ib0ad7a5fc5f4a2fdc8c99abe1f2d3d15b21a4974
Reviewed-on: https://dart-review.googlesource.com/29744
Commit-Queue: Paul Berry <paulberry@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2017-12-15 20:41:43 +00:00
Leaf Petersen
53908b0790
Remove warning for "is" checks with generic type parameters.
...
The analyzer used to emit a warning when a type parameter to a generic
method was used in an "is" check. This warning was there to help
users write code that worked correctly on both Dart 1.0 and 2.0. Now
that 2.0 generic methods are being more broadly supported and used,
this warning is blocking further library work, and is being removed.
Fixes https://github.com/dart-lang/sdk/issues/30530
Bug:
Change-Id: I70395305ad082aee3072b5beeb0b1b7f7883391b
Reviewed-on: https://dart-review.googlesource.com/29821
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2017-12-15 18:12:03 +00:00
Dan Rubel
b16baaf8cf
Add fasta parser property access recovery
...
Change-Id: Iece1dc1ea8eeb0928ffbcdefdbbdb54cb4277e31
Reviewed-on: https://dart-review.googlesource.com/29740
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Dan Rubel <danrubel@google.com >
2017-12-15 12:47:22 +00:00