From 1e33f4cc25600292fe7591f1e48a520132937a41 Mon Sep 17 00:00:00 2001 From: soad003 Date: Wed, 13 Dec 2017 13:44:46 +0100 Subject: [PATCH] Static Analysis: assert / require, fix comments, cleanup --- .../src/analysis/modules/staticAnalysisCommon.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/remix-solidity/src/analysis/modules/staticAnalysisCommon.js b/remix-solidity/src/analysis/modules/staticAnalysisCommon.js index 28fd50281a..1cce5acf28 100644 --- a/remix-solidity/src/analysis/modules/staticAnalysisCommon.js +++ b/remix-solidity/src/analysis/modules/staticAnalysisCommon.js @@ -20,9 +20,7 @@ var nodeTypes = { INLINEASSEMBLY: 'InlineAssembly', BLOCK: 'Block', NEWEXPRESSION: 'NewExpression', - RETURN: 'Return', - ASSERT: 'assert', - REQUIRE: 'require' + RETURN: 'Return' } 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 * @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 * @return {bool} */