mirror of
https://github.com/github/codeql.git
synced 2026-05-30 11:01:24 +02:00
documentation for new feature
This commit is contained in:
@@ -411,7 +411,22 @@ class EnclosingFunctionBody extends EndpointFeature, TEnclosingFunctionBody {
|
||||
}
|
||||
}
|
||||
|
||||
/** The feature for the imports defined in the file containing an endpoint. */
|
||||
/**
|
||||
* The feature for the imports defined in the file containing an endpoint.
|
||||
*
|
||||
* ### Example
|
||||
*
|
||||
* ```javascript
|
||||
* import { findOne } from 'mongoose';
|
||||
* import * as _ from 'lodash';
|
||||
* const pg = require('pg');
|
||||
*
|
||||
* // ...
|
||||
* ```
|
||||
*
|
||||
* In this file, all endpoints will have the value `lodash mongoose pg` for the feature `fileImports`.
|
||||
*
|
||||
* */
|
||||
class FileImports extends EndpointFeature, TFileImports {
|
||||
override string getName() { result = "fileImports" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user