- 04 4月, 2018 2 次提交
-
-
由 Neal Gafter 提交于
-
由 Neal Gafter 提交于
The test exposed some parsing precedence issues for the switch expression which are fixed here. The => following the when clause was being consumed as part of the when expression (as a lambda). Changed the precedence of the when expression to a coalescing expression to forbid a lambda there.
-
- 03 4月, 2018 1 次提交
-
-
由 Neal Gafter 提交于
-
- 02 4月, 2018 1 次提交
-
-
由 Tomáš Matoušek 提交于
Implements targets that calculate PathMap from SourceRoots and provide extension point for Source Link generator
-
- 31 3月, 2018 5 次提交
-
-
由 Julien Couvreur 提交于
-
由 vsadov 提交于
-
由 Neal Gafter 提交于
-
由 Neal Gafter 提交于
-
由 Neal Gafter 提交于
-
- 30 3月, 2018 11 次提交
-
-
由 Julien Couvreur 提交于
-
由 Alireza Habibi 提交于
-
由 Neal Gafter 提交于
-
由 Neal Gafter 提交于
-
-
由 Neal Gafter 提交于
-
由 vsadov 提交于
There are expressions for which ref-struct escape analysis does not make sense. Yet we keep finding ourselves in situations where we have to do it. Generally in error conditions. So, instead of throwing "unreachable" we will return the most conservative results. There is still an assert here so that if new bound nodes are added, there will be a chance to think whether there is a need for nontrivial handling of the node. Fixes:#25398
-
由 Fredric Silberberg 提交于
-
由 Julien Couvreur 提交于
-
由 Neal Gafter 提交于
-
由 Neal Gafter 提交于
-
- 29 3月, 2018 6 次提交
-
-
由 Julien Couvreur 提交于
-
由 Neal Gafter 提交于
And other minor changes per review.
-
由 Fredric Silberberg 提交于
-
由 Fredric Silberberg 提交于
-
由 Neal Gafter 提交于
Simplify expressions in `IsPossibleSubpatternElement`
-
由 Neal Gafter 提交于
Also reduce cascaded diagnostics in attribute argument binding. Fixes #9154
-
- 28 3月, 2018 10 次提交
-
-
由 Neal Gafter 提交于
-
由 Fredric Silberberg 提交于
Added both ExpressionBody and BlockBody to the underlying BoundNode for local functions, and exposed both to IOperation consumers.
-
由 Neal Gafter 提交于
Note that this error does not apply to the discard *designation*, only the discard *pattern*. Since the discard designation is new in C#8, this is not a breaking change. Report an error if a constant named '_' is used as a constant pattern. This error has been confirmed by the LDM on 2017-11-20 Also report a warning if a type named '_' is used in an is-type expression. This requires compat council confirmation. Open issues in https://github.com/dotnet/csharplang/issues/1054 describe pending LDM decisions for potentialy breaking scenarios.
-
-
由 Julien Couvreur 提交于
-
由 Julien Couvreur 提交于
-
由 Neal Gafter 提交于
Fixes #25663 ### From https://github.com/dotnet/roslyn/pull/24059 - In `CheckConsistentDecision`, use some notation like `v != null --> !(v == null)` for more clarity than the English language comment. - Add a private constructor to prevent construction of `DagStateEquivalence` - Hint creation of builder size in `CheckSwitchErrors` - Suppress subsumption errors on switch expression case if the pattern has an error. - In `LowerTest`, we have special handling for decisions on constant-valued input. But such decisions should already have been removed from the decision dag. Assert that this situation cannot occur and remove the special handling code. - Merge two cases in `switch (sortedNodes[0])` in `LowerDecisionDag` - Comment on `GetDagNodeLabel` is now less redundant. ### From https://github.com/dotnet/roslyn/pull/25544 - In `AwaitExpressionSpiller.cs`, move `VisitSwitchDispatch` to right before `VisitThrowStatement` so it is in the same place where `VisitSwitchStatement` used to be to make deltas more clear in the end. - Remove `params` overload `public BoundStatement Switch(BoundExpression ex, params SyntheticSwitchSection[] sections)` and force caller to properly construct an immutable array.
-
由 Joseph Musser 提交于
Merging on behalf of @jnm2
-
由 Julien Couvreur 提交于
-
由 Adam Speight 提交于
Merging on behalf of @AdamSpeight2008 Thanks for the contribution
-
- 27 3月, 2018 4 次提交
-
-
由 Neal Gafter 提交于
Fixes #20641 Fixes #25566
-
由 Neal Gafter 提交于
-
由 Neal Gafter 提交于
- Added some improved debug-time display for synthesized locals - Added some invariant checking regarding bound nodes. - Move invocation of the spiller into LocalRewriter.Rewrite - Add an error for when an expression tree contains a switch expression - Made the local substituter apply at the top level in the expression spiller because expressions can now contain statements (BoundSpillSequence) - Move the error ERR_ByRefTypeAndAwait to IteratorAndAsyncCaptureWalker - Skip broken tests due to #25702
-
由 Julien Couvreur 提交于
-