mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JavaScript: Add basic modelling of React Native WebViews.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Provides classes for working with [React Native](https://facebook.github.io/react-native) code.
|
||||
*/
|
||||
|
||||
import javascript
|
||||
|
||||
module ReactNative {
|
||||
/** A `WebView` JSX element. */
|
||||
class WebViewElement extends DataFlow::ValueNode, DataFlow::DefaultSourceNode {
|
||||
override JSXElement astNode;
|
||||
|
||||
WebViewElement() {
|
||||
DataFlow::moduleMember("react-native", "WebView").flowsToExpr(astNode.getNameExpr())
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user