Static Analysis: add comments

pull/1/head
soad003 7 years ago
parent a6c4a38c88
commit d122a40ff2
  1. 5
      src/app/staticanalysis/modules/staticAnalysisCommon.js

@ -406,6 +406,11 @@ function isBuiltinFunctionCall (node) {
return isLocalCall(node) && builtinFunctions[getLocalCallName(node) + '(' + getFunctionCallTypeParameterType(node) + ')'] === true
}
/**
* True if node is a call to selfdestruct
* @node {ASTNode} some AstNode
* @return {bool}
*/
function isSelfdestructCall (node) {
return isBuiltinFunctionCall(node) && getLocalCallName(node) === 'selfdestruct'
}

Loading…
Cancel
Save