1. 07 5月, 2019 1 次提交
    • R
      Readonly members symbol display (#34876) · f99a821c
      Rikki Gibson 提交于
      * Symbol display for readonly members
      
      * Add coverage
      
      * Test malformed properties and events
      
      * Show readonly keyword on non-field members in QuickInfo
      
      * Use IsDeclaredReadOnly for symbol display (WIP)
      
      * Update based on design and fix some test failures
      
      * Add readonly keywords to various IL tests
      
      * Fix more tests, respond to feedback
      
      * Fix compile error
      
      * Don't display readonly keyword for implicit readonly getters from source
      
      * Don't show readonly keyword for members contained within a readonly struct
      
      * Move from extension methods to private statics
      f99a821c
  2. 26 4月, 2019 1 次提交
    • R
      Readonly struct and readonly member metadata as source (#34778) · f0c9a94f
      Rikki Gibson 提交于
      * Implement MetadataAsSource for ref and readonly structs
      
      * MetadataAsSource for readonly members
      
      * Fix NotImplementedException errors. Fix some ArrayBuilder leaks.
      
      * Fix a leak. Fix implicit readonly attribute test.
      
      * List passed to GetUpdatedDeclarationAccessibilityModifiers needs to support Remove
      
      * Allow specifying a metadata language version for MetadataAsSourceTests
      
      * Remove unused SyntaxTokenList members. Comment readonly event generation.
      
      * Check VB MetadataAsSource for readonly members
      
      * Fixes from feedback
      
      * Add test for not implicitly readonly struct getter
      
      * Label arguments in call to GetCustomAttributesForToken
      
      * Reference issue about readonly event public API
      f0c9a94f
  3. 25 4月, 2019 1 次提交
  4. 02 4月, 2019 1 次提交
    • R
      Readonly members more test coverage (#34602) · 0d15dd1a
      Rikki Gibson 提交于
      * Check parser behavior for bad expression property declaration
      
      * Make readonly modifiers more strict on accessors to match accessibility behavior
      
      * Fix tests
      
      * Improve implicit copy warning message. Add compound property assignment test.
      
      * Test ErrorCode.ERR_ReadOnlyModMissingAccessor with an indexer
      
      * Simplify error message for 'static readonly' members
      0d15dd1a
  5. 30 3月, 2019 1 次提交
    • R
      Readonly members prototype cleanup (#34468) · 56214c6c
      Rikki Gibson 提交于
      * Use RefKind.In for the ThisParameter of a readonly method
      
      * Remove prototype comments
      
      * Add readonly lambda test
      
      * Fix formatting
      
      * Update compiler test plan
      
      * Tweak wording
      
      * Move OverrideBaseMethod test to CodeGen tests file. Add 'fixed' test.
      
      * Test readonly partial methods
      
      * Add readonly explicit interface implementation test
      
      * Expand on ReadOnlyMembers_BaseMethod code gen tests
      
      * Check symbol APIs for mismatched readonly partial method
      
      * Update speclet
      
      * Respond to feedback
      
      * Refactor metadata round trip test
      56214c6c
  6. 22 3月, 2019 1 次提交
    • R
      Readonly members metadata (#34260) · c2b27770
      Rikki Gibson 提交于
      * Add feature doc for readonly members
      
      * Add IsReadOnly attribute to method and property metadata
      
      * Static methods are never effectively readonly. Add more metadata tests.
      
      * Fix test failures
      
      * 'readonly' properties shouldn't have IsReadOnlyAttribute. Other misc feedback items.
      
      * Test readonly local function
      
      * Test static readonly method from metadata
      
      * Fixes from feedback
      c2b27770
  7. 20 3月, 2019 1 次提交
    • R
      Readonly members warnings and semantic errors (#34022) · 9947942d
      Rikki Gibson 提交于
      * readonly members warnings WIP
      
      * Remove dead code
      
      * Readonly members semantic checks. Warn on implicit copy of 'this'.
      
      * Add to readonly ref readonly test
      
      * Warn on implicit copies for get property access
      
      * Don't warn on calls to base methods
      
      * Add test for setter accesses in a readonly member
      
      * Allow readonly setter accesses in readonly methods
      
      * Test increment, compound assignment, and field-like events
      
      * Fixes from feedback
      
      * Add mutating readonly event accessors test
      
      * Expand on readonly base members test
      
      * Check for implicit copies in foreach/using/deconstruction scenarios
      
      * Split base method tests into multiple tests for clarity
      
      * Test remaining cases
      
      * Fix whitespace in test
      
      * Add ReadOnlyMethod_RefLocal
      
      * Fixes from Fred's feedback
      9947942d
  8. 12 3月, 2019 1 次提交
    • R
      Readonly members emit changes (#33954) · 695ca5c1
      Rikki Gibson 提交于
      * Add MethodSymbol.IsReadOnly API
      
      * Update emitter to copy 'this' for non-readonly method calls in readonly methods
      
      * Add tests for static methods with in parameters
      
      * Rely on HasHome instead of directly checking IsReadOnly and AddressKind
      
      * Move IL-verifying tests to CodeGenReadonlyStructTests.cs
      
      * Fixes from feedback
      
      * A few more test cases and cleanup
      695ca5c1
  9. 10 12月, 2018 1 次提交
  10. 21 3月, 2018 1 次提交
  11. 20 2月, 2018 1 次提交
  12. 19 2月, 2018 4 次提交
  13. 17 2月, 2018 2 次提交
  14. 26 1月, 2018 1 次提交
  15. 12 1月, 2018 2 次提交
  16. 05 1月, 2018 1 次提交
  17. 15 11月, 2017 1 次提交
  18. 29 9月, 2017 2 次提交
  19. 20 9月, 2017 1 次提交
  20. 18 9月, 2017 1 次提交
  21. 30 8月, 2017 2 次提交
  22. 16 8月, 2017 1 次提交
  23. 05 8月, 2017 1 次提交
  24. 02 8月, 2017 1 次提交
    • V
      - Introduced the flag. · ac2adb13
      vsadov 提交于
      - Made readonly fields homeless outside the constructor when flag is set.
      ac2adb13
  25. 31 7月, 2017 1 次提交
    • V
      Slightly more efficient way to emit a reference to default expression · fbdcba50
      vsadov 提交于
      Basically addressing a TODO in codegen.
      To pass default by reference we need a temp and to make a default value we need a temp (often mapped to same slot)
      
      We could just pass the reference to the second one. No need to copy between temps.
      Besides, they are often mapped to the same IL slot resulting in clearly redundant load/store with the same local.
      
      The scenario gets more common with "ref readonly" so here is the fix.
      fbdcba50
  26. 31 5月, 2017 1 次提交
  27. 27 5月, 2017 1 次提交
  28. 26 5月, 2017 1 次提交
  29. 25 5月, 2017 1 次提交
  30. 24 5月, 2017 1 次提交
  31. 23 5月, 2017 2 次提交