Skip to content

Commit 0a16cf6

Browse files
committed
C#: Do not require that comments and type locations are in source in test.
1 parent 43118ec commit 0a16cf6

File tree

1 file changed

+3
-3
lines changed
  • csharp/ql/test/library-tests/overlay

1 file changed

+3
-3
lines changed

csharp/ql/test/library-tests/overlay/test.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ query predicate eventAccessors(EventAccessor ea) { ea.fromSource() }
3232

3333
query predicate usingDirectives(UsingDirective ud) { ud.fromSource() }
3434

35-
query predicate commentLines(CommentLine cl) { cl.getLocation().getFile().fromSource() }
35+
query predicate commentLines(CommentLine cl) { any() }
3636

37-
query predicate commentBlocks(CommentBlock cb) { cb.getLocation().getFile().fromSource() }
37+
query predicate commentBlocks(CommentBlock cb) { any() }
3838

39-
query predicate typeMentions(TypeMention tm) { tm.getLocation().getFile().fromSource() }
39+
query predicate typeMentions(TypeMention tm) { any() }

0 commit comments

Comments
 (0)