Commit b38bfc18 authored by soad003's avatar soad003

Static Analysis: assert / require, fix comments, cleanup

parent 32a68276
...@@ -20,9 +20,7 @@ var nodeTypes = { ...@@ -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) { ...@@ -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) { ...@@ -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}
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment