File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed
csharp/ql/lib/semmle/code/csharp Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -197,29 +197,9 @@ class File extends Container, @file {
197
197
198
198
override string getURL ( ) { result = "file://" + this .getAbsolutePath ( ) + ":0:0:0:0" }
199
199
200
- pragma [ noinline]
201
- private predicate hasStubHeaderComment ( ) {
202
- exists ( CommentLine c |
203
- c .getText ( ) = "This file contains auto-generated code." and
204
- c .getLocation ( ) .getFile ( ) = this
205
- )
206
- }
207
-
208
- pragma [ noinline]
209
- private predicate hasStubComment ( ) {
210
- exists ( CommentLine c |
211
- c .getText ( ) .regexpMatch ( "Generated from `.*` in `.*`" ) and
212
- c .getLocation ( ) .getFile ( ) = this
213
- )
214
- }
215
-
216
200
/** Holds if this file is a QL test stub file. */
217
201
pragma [ noinline]
218
- private predicate isStub ( ) {
219
- this .hasStubHeaderComment ( ) and
220
- this .hasStubComment ( ) and
221
- this .getAbsolutePath ( ) .matches ( "%resources/stubs/%" )
222
- }
202
+ private predicate isStub ( ) { this .getAbsolutePath ( ) .matches ( "%resources/stubs/%" ) }
223
203
224
204
/** Holds if this file contains source code. */
225
205
final predicate fromSource ( ) {
You can’t perform that action at this time.
0 commit comments