GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — C#: Add discarding for diagnostics and extractor messages. · github/codeql@5fe0d0e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • csharp/ql/lib/semmle/code/csharp
    • Overlay.qll
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎csharp/ql/lib/semmle/code/csharp/Overlay.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/lib/semmle/code/csharp/Overlay.qll
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract private class DiscardableEntity extends @locatable {
3333
* The rest use named TRAP IDs.
3434
*/
3535
overlay[local]
36-
private class StarEntity = @expr or @stmt;
36+
private class StarEntity = @expr or @stmt or @diagnostic or @extractor_message;
3737

3838
overlay[discard_entity]
3939
private predicate discardStarEntity(@locatable e) {
@@ -98,7 +98,9 @@ private class PossibleDiscardableEntity extends DiscardableEntity instanceof @lo
9898
param_location(this, loc) or
9999
type_mention_location(this, loc) or
100100
commentline_location(this, loc) or
101-
commentblock_location(this, loc)
101+
commentblock_location(this, loc) or
102+
diagnostics(this, _, _, _, _, loc) or
103+
extractor_messages(this, _, _, _, _, loc, _)
102104
)
103105
}
104106
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.