Static Analysis: assert / require, fix comments, cleanup

pull/3094/head
soad003 7 years ago
parent 17e12e25b2
commit 1e33f4cc25
  1. 8
      remix-solidity/src/analysis/modules/staticAnalysisCommon.js

@ -20,9 +20,7 @@ var nodeTypes = {
INLINEASSEMBLY: 'InlineAssembly', INLINEASSEMBLY: 'InlineAssembly',
BLOCK: 'Block', BLOCK: 'Block',
NEWEXPRESSION: 'NewExpression', NEWEXPRESSION: 'NewExpression',
RETURN: 'Return', RETURN: 'Return'
ASSERT: 'assert',
REQUIRE: 'require'
} }
var basicTypes = { var basicTypes = {
@ -419,7 +417,7 @@ function isSelfdestructCall (node) {
} }
/** /**
* True if node is a call to assert * True if node is a call to builtin assert(bool)
* @node {ASTNode} some AstNode * @node {ASTNode} some AstNode
* @return {bool} * @return {bool}
*/ */
@ -428,7 +426,7 @@ function isAssertCall (node) {
} }
/** /**
* True if node is a call to assert * True if node is a call to builtin require(bool)
* @node {ASTNode} some AstNode * @node {ASTNode} some AstNode
* @return {bool} * @return {bool}
*/ */

Loading…
Cancel
Save