1. 09 10月, 2015 1 次提交
    • A
      Revise script binder chain · 1177e33c
      Andrew Casey 提交于
       1. Look for declarations in the current submission (including aliases).
       2. Look for declarations in preceding submissions (including aliases), in
       order.
       3. Look for members in the host object (if any).
       4. Look for declarations in the global namespace.
       5. Look in usings (except aliases) in the current submission and all
       preceding submissions (all at once, not looping).
       6. Look in the global imports of the current submission and all preceding
       submissions (all at once, not looping).
      
      Note that 5, 6, and aliases from 1 are skipped if we are binding the
      target of a using in the current submission.
      
      Fixes #5450
      Fixes #4811
      1177e33c
  2. 02 10月, 2015 1 次提交
  3. 01 10月, 2015 1 次提交
    • A
      Re-integrate import lookup into submission walk · 0bf1b212
      Andrew Casey 提交于
      Look at the usings for each submission as we visit that submission.  The
      mental model is a chain of ```InContainerBinder```s, but we don't actually
      instantiate the chain for perf reasons.
      
      TODO: Some tests are failing because of the new semantics.  The main issue
      is that usings can now hide members (not just types).  No corresponding
      issue exists in C# because usings can't appear within types.
      0bf1b212
  4. 30 9月, 2015 3 次提交
  5. 25 9月, 2015 1 次提交
  6. 17 9月, 2015 1 次提交
    • M
      Add a new CompilationOption "ReportSuppressedDiagnostics" to enable reporting... · 18aabe22
      Manish Vasani 提交于
      Add a new CompilationOption "ReportSuppressedDiagnostics" to enable reporting compiler diagnostics suppressed in source. Note that the command line compilers will report such suppressed diagnostics in the SARIF errorlog file but not on the console output.
      
      This new compilation option was approved by the design team.
      
      Fixes #5216
      18aabe22
  7. 15 9月, 2015 1 次提交
  8. 11 9月, 2015 2 次提交
    • M
      Emit "isSuppressedInSource" boolean property for diagnostics in the ErrorLog... · a3b4dd49
      Manish Vasani 提交于
      Emit "isSuppressedInSource" boolean property for diagnostics in the ErrorLog file and report suppressed analyzer diagnostics in the error log.
      a3b4dd49
    • M
      Initial work for "Disconnected baselining" scenario: · 08b9efdc
      Manish Vasani 提交于
      1. CompilationWithAnalyzers can now report analyzer diagnostics with source suppressions (pragma/SuppressMessageAttribute). This will eventually allow us to surface diagnostics with source suppressions in the error list. Note that the behavior of command line compilers and all the GetDiagnostics APIs is unchanged, only the compiler analyzer will report diagnostics with source suppressions.
      
      2. Add FixAll support for Suppression code fixes. Light bulb suppression fixes now show the "Fix all occurrences" options for Document/Project/Solution. This change adds the basic functionality to bulk suppress diagnostics. This will eventually be consumed for baselining all/selected diagnostics from error list/solution explorer.
      
      3. Simplify the Suppression light bulb menu to remove the option to add a local SuppressMessageAttribute. The only options now are to suppress in source (pragma) or suppressions file (assembly level SuppressMessageAttribute).
      08b9efdc
  9. 05 9月, 2015 2 次提交
  10. 22 8月, 2015 1 次提交
  11. 21 8月, 2015 1 次提交
  12. 05 8月, 2015 1 次提交
    • M
      Implementation for Analyzer driver v2 for IDE analyzer host. · 3298740f
      Manish Vasani 提交于
      Changes include:
      
      1. Enhance CompilationWithAnalyzers to allow computing analyzer diagnostics for a specific tree/span within a compilation and/or for a subset of analyzers. Implementation ensures no duplicate analysis by tracking partial analysis state and caching the reported analyzer diagnostics.
      
      2. Overview of the new APIs added to CompilationWithAnalyzers:
          1. GetAnalyzerSyntaxDiagnostics(tree, analyzers, ct)
              1. Analogous to SyntaxTree.GetDiagnostics(ct)
              2. Gets analyzer diagnostics reported by executing syntax tree actions on the given tree.
          2. GetAnalyzerSemanticDiagnostics(semanticModel, spanOpt, analyzers, ct)
              1. Analogous to SemanticModel.GetDiagnostics(spanOpt, ct)
              2. Gets analyzer diagnostics reported by executing rest of the non-compilation actions on the given tree span.
          3. GetAnalyzerCompilationDiagnostics(analyzers, ct)
              1. Gets rest of the analyzer diagnostics which are reported by either of the following means:
                  1. Compilation actions (and compilation end actions)
                  2. Non-compilation actions reporting diagnostics on different tree: Executing a symbol action on a symbol definition in a tree, can report diagnostic on its partial definition in some other tree.
      
      3. Simplify IDE analyzer driver by switching it to using the new CompilationWithAnalyzers APIs for analyzer diagnostic computation. Both the IDE and compiler drivers now use the compilation event queue model for driving analysis.
      3298740f
  13. 17 7月, 2015 1 次提交
  14. 14 7月, 2015 2 次提交
  15. 07 7月, 2015 1 次提交
  16. 03 7月, 2015 1 次提交
    • A
      Report diagnostics when short-circuiting emit · 516db69f
      Andrew Casey 提交于
      As an optimization, submissions not containing declarations are not
      emitted.  However, when we short-circuit emission, we also skip diagnostic
      reporting (e.g. in usings) that can trigger an assert in the next
      submission (which assumes that all errors have been reported).
      
      Fixes #3795
      516db69f
  17. 02 7月, 2015 1 次提交
  18. 27 6月, 2015 1 次提交
  19. 24 6月, 2015 1 次提交
    • M
      Add DiagnosticDescriptor.GetEffectiveSeverity(CompilationOptions) API to get... · 05a7e645
      Manish Vasani 提交于
      Add DiagnosticDescriptor.GetEffectiveSeverity(CompilationOptions) API to get the effective severity of diagnostics created based on the descriptor for the given compilation options.
      
      This change also removes the clone of this functionality in the IDE layer used by the solution explorer rule severity display and error list/diagnostic service. It now uses this public API.
      
      Fixes #2598
      05a7e645
  20. 18 6月, 2015 1 次提交
  21. 20 5月, 2015 1 次提交
  22. 19 5月, 2015 1 次提交
  23. 03 5月, 2015 1 次提交
  24. 01 5月, 2015 1 次提交
  25. 28 4月, 2015 2 次提交
  26. 20 4月, 2015 1 次提交
  27. 06 3月, 2015 2 次提交
  28. 25 2月, 2015 2 次提交
  29. 21 2月, 2015 1 次提交
  30. 20 2月, 2015 1 次提交
  31. 18 2月, 2015 1 次提交
    • O
      Added a 'suppressAccessChecks' parameter to Compilation.GetSemanticModel · f91f779b
      Omer Raviv 提交于
      Calling GetSemanticModel with suppressAccessChecks=true creates a SemanticModel that ignores accessibility rules when answering semantic questions.
      This allows consumers to ask semantic questions using the same semantic rules as the ones used in debugger’s Expression Evaluator, where accessibility rules do not matter.
      
      Added unit tests for C# and VB.NET to cover both regular and speculative analysis.
      f91f779b
  32. 14 2月, 2015 1 次提交