solidity/test/libsolidity/ASTJSON/modifier_invocation_legacy.json
2020-10-13 14:32:11 +02:00

205 lines
4.7 KiB
JSON

{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
14
]
}
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"fullyImplemented": true,
"linearizedBaseContracts":
[
14
],
"name": "C",
"scope": 15
},
"children":
[
{
"attributes":
{
"name": "M",
"virtual": false,
"visibility": "internal"
},
"children":
[
{
"children":
[
{
"attributes":
{
"constant": false,
"mutability": "mutable",
"name": "i",
"scope": 6,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"visibility": "internal"
},
"children":
[
{
"attributes":
{
"name": "uint",
"type": "uint256"
},
"id": 1,
"name": "ElementaryTypeName",
"src": "24:4:1"
}
],
"id": 2,
"name": "VariableDeclaration",
"src": "24:6:1"
}
],
"id": 3,
"name": "ParameterList",
"src": "23:8:1"
},
{
"children":
[
{
"id": 4,
"name": "PlaceholderStatement",
"src": "34:1:1"
}
],
"id": 5,
"name": "Block",
"src": "32:6:1"
}
],
"id": 6,
"name": "ModifierDefinition",
"src": "13:25:1"
},
{
"attributes":
{
"functionSelector": "28811f59",
"implemented": true,
"isConstructor": false,
"kind": "function",
"name": "F",
"scope": 14,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
"children":
[
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 7,
"name": "ParameterList",
"src": "49:2:1"
},
{
"attributes":
{
"parameters":
[
null
]
},
"children": [],
"id": 11,
"name": "ParameterList",
"src": "64:0:1"
},
{
"children":
[
{
"attributes":
{
"name": "M",
"referencedDeclaration": 6
},
"id": 8,
"name": "IdentifierPath",
"src": "52:1:1"
},
{
"attributes":
{
"hexvalue": "31",
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"token": "number",
"type": "int_const 1",
"value": "1"
},
"id": 9,
"name": "Literal",
"src": "54:1:1"
}
],
"id": 10,
"name": "ModifierInvocation",
"src": "52:4:1"
},
{
"attributes":
{
"statements":
[
null
]
},
"children": [],
"id": 12,
"name": "Block",
"src": "64:2:1"
}
],
"id": 13,
"name": "FunctionDefinition",
"src": "39:27:1"
}
],
"id": 14,
"name": "ContractDefinition",
"src": "0:68:1"
}
],
"id": 15,
"name": "SourceUnit",
"src": "0:69:1"
}