1. 16 8月, 2017 1 次提交
  2. 24 6月, 2017 1 次提交
  3. 19 5月, 2017 1 次提交
    • O
      Generate readonlyattribute if it does not exist (#18715) · d63f0384
      Omar Tawfik 提交于
      * Call this.DeclaringCompilation.EnsureReadOnlyAttributeExists() when needed
      
      * Promote EmbeddedAttribute to be used by both compilers
      
      * Generate Embedded attributes on PE Module Builder
      
      * Thread PEModuleBuilder through Symbol.AddSynthesizedAttributes()
      
      * Fix failing tests
      
      * Base case passing
      
      * Refactor ReadOnlyAttribute to IsReadOnlyAttribute
      
      * Fix build break
      
      * More Tests
      
      * Clean up
      
      * PR Comments #1
      
      PR Comments #3
      
      PR Comments #4
      
      PR Comments #5
      
      PR Comments #6
      
      PR Comments # 7
      
      * Handle NoPIA
      
      Added more tests
      
      * Lambdas and Local functions no longer generate attributes in symbols
      
      Added tests for constructors and operators
      
      Signal need for synthesized attributes in local rewriter for lambdas an local functions
      
      Clean up
      
      * Clean up
      
      * More PR Feedback
      
      * Adding more tests
      
      * More PR Comments
      
      * More tests for explicit interface implementations
      
      * Latest PR Comments
      
      * Moved EnsureIsReadOnlyAttributeExists to AfterAddingTypeMembersChecks
      
      * Fix failing tests
      d63f0384
  4. 13 5月, 2017 1 次提交
    • S
      Fix instrumentation for methods that have spans in multiple source files. · 88cc266e
      Shyam N 提交于
      A single method could have spans in multiple source files. For example, synthesized constructors of partial types can have spans in multiple files if this type has field initializers in multiple files. Another example is methods with #line directives.
      
      This change changes instrumentation for such methods - the instrumented IL for such methods will now include a call to a new overload of Microsoft.CodeAnalysis.Runtime.Instrumentation.CreatePayload() that accepts an array of file indices as opposed to single file index.
      88cc266e
  5. 05 5月, 2017 1 次提交
  6. 11 4月, 2017 1 次提交
    • O
      Writing ReadOnlyAttribute if it exists as well-known type (#18358) · 03f58fd2
      Omar Tawfik 提交于
      * Writing attribute to metadata
      
      * Reading attribute in PE symbols
      
      * Added more tests for lambdas, delegates, and other types
      
      * Use ReadOnlyAttribute instead
      
      * Fix build break
      
      * Fix Failed Tests
      
      * Enable back disabled tests
      
      * Fix more tests
      
      * Ban usage of ReadOnlyAttribute in source
      
      * Rename System.Runtime.InteropServices.ReadOnlyAttribute to System.Runtime.CompilerServices.ReadOnlyAttribute
      
      * Clean up
      
      * Address CR comments
      
      * More PR feedback
      03f58fd2
  7. 08 4月, 2017 1 次提交
  8. 13 10月, 2016 1 次提交
  9. 20 7月, 2016 1 次提交
  10. 13 7月, 2016 1 次提交
    • A
      Implements simple cases of tuple name roundtripping (#12344) · 7bd28046
      Andy Gocke 提交于
      For the most part, this change implements the same encoding
      for tuples that we use for dynamic. This means that interface
      implementations and generic constraints are not covered, but
      base types and type parameters are.
      
      This change also doesn't have full tests for "long" tuples (nested tuple
      transformations) or tuple types that can only be constructed in
      metadata.
      7bd28046
  11. 13 5月, 2016 1 次提交
  12. 05 5月, 2016 1 次提交
  13. 04 5月, 2016 2 次提交
  14. 28 4月, 2016 8 次提交
  15. 28 3月, 2016 1 次提交
  16. 16 3月, 2016 1 次提交
  17. 23 5月, 2015 1 次提交
    • A
      Add EE support for My.InternalXmlHelper · 9b18cb0e
      Andrew Casey 提交于
      Two things were preventing the EE from finding the type, which is needed
      for XML literal operations in VB:
      
      1. It is marked internal and the accessibility check happened in
      AssemblySymbol, rather than the binder, so it was not hijacked.
      
      2. It is marked with EmbeddedAttribute and is not from the SourceModule of
      the compilation (it's from the module of the current frame).
      
      We can resolve both of these problems by doing the lookups as though we
      were in the module containing the current frame.  This required two
      changes:
      
      1. Remove InternalXmlHelper from WellKnownTypes and give it its own code
      path.  Explicitly pass the appropriate module symbol to the new helper.
      
      2. In Binder.CheckViability, look for a containing module before falling
      back on the SourceModule of the compilation.
      
      By preserving the accessibility checks during type lookup (but doing them
      from the perspective of a different assembly), we retain the compiler's
      protection against pulling in a copy from each VB reference (i.e.
      ambiguity).
      
      The main caveat is that My.InternalXmlHelper will not be found if it was
      not embedded in the module containing the current frame - even if it is
      unambiguously available in a referenced assembly.
      
      Breaking change: unlike dev12, roslyn will only find My.InternalXmlHelper
      in the source module.
      
      Fixes #964
      9b18cb0e
  18. 22 5月, 2015 1 次提交
    • A
      Add EE support for My.InternalXmlHelper · 330ef737
      Andrew Casey 提交于
      Two things were preventing the EE from finding the type, which is needed
      for XML literal operations in VB:
      
      1. It is marked internal and the accessibility check happened in
      AssemblySymbol, rather than the binder, so it was not hijacked.
      
      2. It is marked with EmbeddedAttribute and is not from the SourceModule of
      the compilation (it's from the module of the current frame).
      
      We can resolve both of these problems by doing the lookups as though we
      were in the module containing the current frame.  This required two
      changes:
      
      1. Remove InternalXmlHelper from WellKnownTypes and give it its own code
      path.  Explicitly pass the appropriate module symbol to the new helper.
      
      2. In Binder.CheckViability, look for a containing module before falling
      back on the SourceModule of the compilation.
      
      By preserving the accessibility checks during type lookup (but doing them
      from the perspective of a different assembly), we retain the compiler's
      protection against pulling in a copy from each VB reference (i.e.
      ambiguity).
      
      The main caveat is that My.InternalXmlHelper will not be found if it was
      not embedded in the module containing the current frame - even if it is
      unambiguously available in a referenced assembly.
      
      Breaking change: unlike dev12, roslyn will only find My.InternalXmlHelper
      in the source module.
      
      Fixes #964
      330ef737
  19. 25 1月, 2015 1 次提交
    • J
      Change the file encoding of many files back to UTF-8. · cfdd6068
      jaredpar 提交于
      These were accidentally changed to UTF-16LE during a recent scripted change.  This went unnoticed because the encoding change didn't register in CodeFlow (indeed if you view a shelve of this change in CodeFlow it will report no changes).  UTF-16 does not work well with Git as it is often interpreted as a binary file.  Moving back to UTF-8 so our GitHub experience works well for customers.
      
      closes #66 (changeset 1403787)
      cfdd6068
  20. 24 1月, 2015 1 次提交
    • B
      First step in moving the compiler code base to the .Net Foundation coding style. · 16512b64
      beep boop 提交于
      Background:
      
      As discussed in the dev team all hands all code under the GitHub dotnet foundation is using a single process for contribution, API review, infrastructure and coding style. The idea is to present a unified view to our customer and give them a single story for contributing to any project under the dotnet foundation.
      
      https://github.com/dotnet/corefx/wiki/Contributing#c-coding-style
      
      The coding style transition is automated using a Roslyn based rewrite tool:
      
      https://github.com/dotnet/codeformatter
      
      This will be applied in stages across our developer tree. Right now the focus is on the Open directory as this is what is being presented on github. Code owners will be contacted before the transition happens.
      
      Note: this is a soft style requirement. There are no build errors that come from this change.
       (changeset 1403394)
      16512b64
  21. 15 1月, 2015 1 次提交
  22. 14 1月, 2015 1 次提交
  23. 24 12月, 2014 1 次提交
    • A
      Anonymous Type.ToString() implementation should use overload of String.Format... · c631286d
      AlekseyTs 提交于
      Anonymous Type.ToString() implementation should use overload of String.Format that takes IFormatProvider. Also, C# implementation should explicitly call Object.ToString on each property value before passing it to the Format function, this ensures compatibility with code generated by native compiler.
      ***NO_CI***
       (changeset 1386476)
      c631286d
  24. 29 10月, 2014 1 次提交
    • T
      Apply AsyncStateMachineAttribute and IteratorStateMachineAttribute... · 5794eb0a
      TomasMatousek 提交于
      Apply AsyncStateMachineAttribute and IteratorStateMachineAttribute consistently on async/iterator methods in both C# and VB.
      Remove DebuggerStepThroughAttribute from these methods - the methods don't contain or call any user code, so this attribute is not needed.
      
      VB: Avoid generating async state machine when emitting metadata-only PE.
      VB: Unify implementation of state machine type symbol creation and synthesis of attributes with C#.
       (changeset 1360205)
      5794eb0a
  25. 27 9月, 2014 1 次提交
  26. 25 9月, 2014 3 次提交
  27. 10 9月, 2014 1 次提交
  28. 20 6月, 2014 1 次提交
    • T
      Splits Microsoft.CodeAnalysis, Microsoft.CodeAnalysis.CSharp and... · fc3b332f
      TomasMatousek 提交于
      Splits Microsoft.CodeAnalysis, Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.VisualBasic into portable and desktop assemblies.
      
      Existing Core\Source, CSharp\Source and VisualBasic\Source directories are renamed to Core\Portable, CSharp\Portable and VisualBasic\Portable.
      New sibling Desktop folders are added and non-portable source is moved there.
      "System.Runtime" references has to be removed in order for the portable project system magic to automatically add facade references.
       (changeset 1281686)
      fc3b332f
  29. 19 3月, 2014 1 次提交