remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.js
function isConstantFunction (node) {
  return isFunctionDefinition(node) && (
    node.attributes.constant === true ||
    node.attributes.stateMutability === 'view' ||
    node.attributes.stateMutability === 'pure'
  )
}
function isConstantFunction (node) {
  return isFunctionDefinition(node) && (
    node.attributes.constant === true ||
    node.attributes.stateMutability === 'view' ||
    node.attributes.stateMutability === 'pure'
  )
}
function isConstantFunction ( node ) { return isFunctionDefinition ( node ) && ( node . attributes . constant === true || node . attributes . stateMutability === 'view' || node . attributes . stateMutability === 'pure' ) }
True if is function defintion that is flaged as constant
@node {ASTNode} some AstNode
@return {bool}
True if is function defintion that is flaged as constant