1. 28 4月, 2016 5 次提交
    • V
      ==== Adding Syntax nodes and Parser support for Tuples. · f39ba171
      VSadov 提交于
      Most interesting parts here are:
      * the syntax node shape and naming - these are public APIs so we should get the naming right.
      NOTE: I expect some churn here so for now I have disabled the public API diagnostics.
      
      * parsing something that starts with "("  is tricky since that can be a start of many constructs - lambdas, casts, parenthesized expressions...
      I have updated the lookahead logic that tries to figure what we are dealing with, but it may need some tuning to be more robust.
      In particular there could be some error recovery work to see that handling of broken code is sensible.
      
      ==== Current assumptions:
      1) TupleTypes and TupleExpressions must have 2 or more elements/arguments. However we may have to parse 0 and 1 sized expressions for error recovery reasons. Those are syntax errors.
      
      2) TupleType looks like
      
      (int x, int y)  x = ...
      
      I.E.
      
        ( type [name], type [name])
      
      We may enforce that all or no elements have names. Not sure yet if that needs to be in parser or binder.
      
      3) TupleExpression looks like
      
      var something = (x: foo(), y: bar);
      
      I.E.
      
        ( [name:] expr, [name:] expr)
      
      just like with the types we may want to enforce that all or none of the arguments have names. Not sure if that is a syntax or binding error.
      It is not a part of this change.
      f39ba171
    • J
      Merge pull request #10887 from jaredpar/localfunc-test · 1fad593c
      Jared Parsons 提交于
      Local function testing: var and async
      1fad593c
    • N
      Merge pull request #10920 from dotnet/features/patterns · 9a2ba33d
      Neal Gafter 提交于
      Merge "typeswitch" into future
      9a2ba33d
    • N
      Merge from future into features/patterns · a40a9573
      Neal Gafter 提交于
      a40a9573
    • N
      Merge pull request #10888 from gafter/patterns-split10866 · 18858357
      Neal Gafter 提交于
      Remove evidence of advanced pattern-matching features for C# 7.
      18858357
  2. 27 4月, 2016 16 次提交
  3. 26 4月, 2016 19 次提交