mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extend using-for.
This commit is contained in:
@@ -4,17 +4,51 @@
|
||||
{
|
||||
"C":
|
||||
[
|
||||
5
|
||||
13
|
||||
],
|
||||
"L":
|
||||
[
|
||||
1
|
||||
4
|
||||
],
|
||||
"f":
|
||||
[
|
||||
10
|
||||
]
|
||||
},
|
||||
"id": 6,
|
||||
"id": 14,
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes":
|
||||
[
|
||||
{
|
||||
"functionList":
|
||||
[
|
||||
{
|
||||
"function":
|
||||
{
|
||||
"id": 1,
|
||||
"name": "f",
|
||||
"nodeType": "IdentifierPath",
|
||||
"referencedDeclaration": 10,
|
||||
"src": "7:1:1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"id": 3,
|
||||
"nodeType": "UsingForDirective",
|
||||
"src": "0:19:1",
|
||||
"typeName":
|
||||
{
|
||||
"id": 2,
|
||||
"name": "uint",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "14:4:1",
|
||||
"typeDescriptions":
|
||||
{
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"abstract": false,
|
||||
"baseContracts": [],
|
||||
@@ -22,19 +56,86 @@
|
||||
"contractDependencies": [],
|
||||
"contractKind": "library",
|
||||
"fullyImplemented": true,
|
||||
"id": 1,
|
||||
"id": 4,
|
||||
"linearizedBaseContracts":
|
||||
[
|
||||
1
|
||||
4
|
||||
],
|
||||
"name": "L",
|
||||
"nameLocation": "8:1:1",
|
||||
"nameLocation": "28:1:1",
|
||||
"nodeType": "ContractDefinition",
|
||||
"nodes": [],
|
||||
"scope": 6,
|
||||
"src": "0:12:1",
|
||||
"scope": 14,
|
||||
"src": "20:12:1",
|
||||
"usedErrors": []
|
||||
},
|
||||
{
|
||||
"body":
|
||||
{
|
||||
"id": 9,
|
||||
"nodeType": "Block",
|
||||
"src": "50:2:1",
|
||||
"statements": []
|
||||
},
|
||||
"id": 10,
|
||||
"implemented": true,
|
||||
"kind": "freeFunction",
|
||||
"modifiers": [],
|
||||
"name": "f",
|
||||
"nameLocation": "42:1:1",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters":
|
||||
{
|
||||
"id": 7,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters":
|
||||
[
|
||||
{
|
||||
"constant": false,
|
||||
"id": 6,
|
||||
"mutability": "mutable",
|
||||
"name": "",
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 10,
|
||||
"src": "44:4:1",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions":
|
||||
{
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
},
|
||||
"typeName":
|
||||
{
|
||||
"id": 5,
|
||||
"name": "uint",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "44:4:1",
|
||||
"typeDescriptions":
|
||||
{
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "43:6:1"
|
||||
},
|
||||
"returnParameters":
|
||||
{
|
||||
"id": 8,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "50:0:1"
|
||||
},
|
||||
"scope": 14,
|
||||
"src": "33:19:1",
|
||||
"stateMutability": "nonpayable",
|
||||
"virtual": false,
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"abstract": false,
|
||||
"baseContracts": [],
|
||||
@@ -42,46 +143,34 @@
|
||||
"contractDependencies": [],
|
||||
"contractKind": "contract",
|
||||
"fullyImplemented": true,
|
||||
"id": 5,
|
||||
"id": 13,
|
||||
"linearizedBaseContracts":
|
||||
[
|
||||
5
|
||||
13
|
||||
],
|
||||
"name": "C",
|
||||
"nameLocation": "22:1:1",
|
||||
"nameLocation": "62:1:1",
|
||||
"nodeType": "ContractDefinition",
|
||||
"nodes":
|
||||
[
|
||||
{
|
||||
"id": 4,
|
||||
"id": 12,
|
||||
"libraryName":
|
||||
{
|
||||
"id": 2,
|
||||
"id": 11,
|
||||
"name": "L",
|
||||
"nodeType": "IdentifierPath",
|
||||
"referencedDeclaration": 1,
|
||||
"src": "32:1:1"
|
||||
"referencedDeclaration": 4,
|
||||
"src": "72:1:1"
|
||||
},
|
||||
"nodeType": "UsingForDirective",
|
||||
"src": "26:17:1",
|
||||
"typeName":
|
||||
{
|
||||
"id": 3,
|
||||
"name": "uint",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "38:4:1",
|
||||
"typeDescriptions":
|
||||
{
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
}
|
||||
"src": "66:14:1"
|
||||
}
|
||||
],
|
||||
"scope": 6,
|
||||
"src": "13:32:1",
|
||||
"scope": 14,
|
||||
"src": "53:29:1",
|
||||
"usedErrors": []
|
||||
}
|
||||
],
|
||||
"src": "0:46:1"
|
||||
"src": "0:83:1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user