* @param {String} fullType - type given by the AST
* @return {Array} containing all the dimensions and size of the array (e.g ['[3]', '[]'] )
*/
functionextractArrayInfo(fullType){
varret=[]
if(fullType.indexOf('[')!==-1){
varsquareBracket=/\[([0-9]+|\s*)\]/g
vardim=fullType.match(squareBracket)
returndim
}
returnret
}
/**
* parse the full type
* parse the full type
*
*
* @param {String} fullType - type given by the AST (ex: uint[2] storage ref[2])
* @param {String} fullType - type given by the AST (ex: uint[2] storage ref[2])
* @return {String} returns the token type (used to instanciate the right decoder) (uint[2] storage ref[2] will return 'array', uint256 will return uintX)
* @return {String} returns the token type (used to instanciate the right decoder) (uint[2] storage ref[2] will return 'array', uint256 will return uintX)