1. 19 3月, 2015 1 次提交
  2. 18 3月, 2015 30 次提交
  3. 17 3月, 2015 9 次提交
    • D
      Qualify member accesses with type name in nameof · 9a1c004f
      David Poeschl 提交于
      Fixes #1193
      
      During expansion, directly accessed members need to be qualified with
      "this." or "TypeName.". Prior to this change, we always qualified
      instance members with "this." and static members with "TypeName.", but
      this technique fails in nameof contexts where an instance member can be
      referenced from a static method, resulting in an improper "this."
      qualification. We can only legally use "this." when both the member
      being accessed and the context from which we are accessing it are
      non-static. However, this change updates the expanders to always use
      "TypeName." qualification in nameof contexts regardless of the
      staticness of either member because it is always legal and feels more
      natural in nameof expressions (where no actual value is being accessed).
      9a1c004f
    • M
      Merge pull request #1286 from mavasani/Issue252 · 072a536f
      Manish Vasani 提交于
      Handle unsupported diagnostics reported by analyzers.
      
      Fixes #252 : If an analyzer reports a diagnostic with an unsupported diagnostic ID, i.e. no descriptor returned by SupportedDiagnostics has that ID, then throw an ArgumentException in ReportDiagnostic method. This exception would be turned into an analyzer diagnostic by the driver and reported back to the analyzer host.
      
      Also fix a few tests that were reporting diagnostics with unsupported ID!
      072a536f
    • M
      Merge to latest sources. · d5d07041
      mavasani 提交于
      d5d07041
    • M
      Fixes #252 : If an analyzer reports a diagnostic with an unsupported... · ec859c16
      mavasani 提交于
      Fixes #252 : If an analyzer reports a diagnostic with an unsupported diagnostic ID, i.e. no descriptor returned by SupportedDiagnostics has that ID, then throw an ArgumentException in ReportDiagnostic method. This exception would be turned into an analyzer diagnostic by the driver and reported back to the analyzer host.
      Also fix a few tests that were reporting diagnostics with unsupported ID!
      ec859c16
    • S
      Merge pull request #1321 from shyamnamboodiripad/FixGetContiguousSpans · d8acc39a
      Shyam N 提交于
      Sort nodes by location before determining contiguous spans encompassed b...
      d8acc39a
    • S
      Sort nodes by location before determining contiguous spans encompassed by these nodes. · c299cc49
      Shyam N 提交于
      CommonSyntaxNodeExtensions.GetContiguousSpans() was incorrectly assuming that the supplied nodes will be in the order in which they appear in source. This helper is used in the analyzer that produces diagnostics to grey out unused usings (i.e. to produce one diagnostic for a set of contiguous unused using directives).
      
      Due to the above incorrect assumption, we would end up producing a single diagnostic spanning multiple unused usings sometimes and multiple diagnostics at other times. Often different invocations of the analyzer for the same source file would produce different set of unused usings diagnostics.
      
      While this does not cause observable problems in regular usage - this is a problem for tests and led to flaky behavior where test would pass sometimes and fail at other times.
      c299cc49
    • T
      Merge pull request #1318 from tmat/master · 65d4efe7
      Tomáš Matoušek 提交于
      VB EnC: enable editing methods with lambdas and LINQ - merged
      65d4efe7
    • R
      Merge pull request #1308 from rchande/KeyNotFound · 83c37ee0
      Ravi Chande 提交于
      Use TryGetValue when looking up cached SyntaxContexts
      83c37ee0
    • C
      Merge pull request #1268 from cston/1138095 · a3d02a1a
      Charles Stoner 提交于
      Use Unicode escape sequences for control characters
      a3d02a1a