Removed null members from JSON output

This commit is contained in:
hrkrshnn
2020-05-20 16:56:33 +05:30
committed by Harikrishnan Mulackal
parent d422a406ba
commit 4a001d568e
95 changed files with 106 additions and 733 deletions
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -133,7 +131,6 @@
}
]
},
"documentation": null,
"functionSelector": "b582ec5f",
"id": 5,
"implemented": true,
@@ -141,7 +138,6 @@
"modifiers": [],
"name": "j",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "b582ec5f",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "j",
"overrides": null,
"scope": 6,
"stateMutability": "nonpayable",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -58,7 +56,6 @@
}
]
},
"documentation": null,
"functionSelector": "e2179b8e",
"id": 5,
"implemented": true,
@@ -66,7 +63,6 @@
"modifiers": [],
"name": "g",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "e2179b8e",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "g",
"overrides": null,
"scope": 6,
"stateMutability": "view",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -120,7 +118,6 @@
}
]
},
"documentation": null,
"functionSelector": "b8c9d365",
"id": 5,
"implemented": true,
@@ -128,7 +125,6 @@
"modifiers": [],
"name": "h",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "b8c9d365",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "h",
"overrides": null,
"scope": 6,
"stateMutability": "view",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -70,7 +68,6 @@
}
]
},
"documentation": null,
"functionSelector": "ece866b9",
"id": 5,
"implemented": true,
@@ -78,7 +75,6 @@
"modifiers": [],
"name": "l",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "ece866b9",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "l",
"overrides": null,
"scope": 6,
"stateMutability": "nonpayable",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -133,7 +131,6 @@
}
]
},
"documentation": null,
"functionSelector": "e2179b8e",
"id": 5,
"implemented": true,
@@ -141,7 +138,6 @@
"modifiers": [],
"name": "g",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "e2179b8e",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "g",
"overrides": null,
"scope": 6,
"stateMutability": "view",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 9,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 8,
"linearizedBaseContracts":
@@ -97,7 +95,6 @@
}
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 7,
"implemented": true,
@@ -105,7 +102,6 @@
"modifiers": [],
"name": "f",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -125,29 +121,19 @@
"mutability": "mutable",
"name": "x",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 7,
"src": "49:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions":
{
"typeIdentifier": null,
"typeString": null
},
"typeDescriptions": {},
"typeName":
{
"id": 2,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "49:4:1",
"typeDescriptions":
{
"typeIdentifier": null,
"typeString": null
}
"typeDescriptions": {}
},
"value": null,
"visibility": "internal"
}
],
@@ -8,8 +8,7 @@
[
8
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "f",
"overrides": null,
"scope": 8,
"stateMutability": "pure",
"virtual": false,
@@ -80,12 +76,9 @@
"constant": false,
"mutability": "mutable",
"name": "x",
"overrides": null,
"scope": 7,
"stateVariable": false,
"storageLocation": "default",
"type": null,
"value": null,
"visibility": "internal"
},
"children":
@@ -93,8 +86,7 @@
{
"attributes":
{
"name": "uint",
"type": null
"name": "uint"
},
"id": 2,
"name": "ElementaryTypeName",
@@ -8,7 +8,6 @@
]
},
"id": 12,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 11,
"linearizedBaseContracts":
@@ -39,7 +37,6 @@
"mutability": "mutable",
"name": "x",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 3,
"src": "28:6:1",
"stateVariable": false,
@@ -61,7 +58,6 @@
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
@@ -77,7 +73,6 @@
"mutability": "mutable",
"name": "s",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 11,
"src": "42:3:1",
"stateVariable": true,
@@ -89,7 +84,6 @@
},
"typeName":
{
"contractScope": null,
"id": 4,
"name": "S",
"nodeType": "UserDefinedTypeName",
@@ -101,7 +95,6 @@
"typeString": "struct C.S"
}
},
"value": null,
"visibility": "internal"
},
{
@@ -203,7 +196,6 @@
}
]
},
"documentation": null,
"functionSelector": "ffae15ba",
"id": 10,
"implemented": true,
@@ -211,7 +203,6 @@
"modifiers": [],
"name": "e",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 6,
@@ -8,8 +8,7 @@
[
11
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -53,12 +51,10 @@
"constant": false,
"mutability": "mutable",
"name": "x",
"overrides": null,
"scope": 3,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children":
@@ -89,12 +85,10 @@
"constant": false,
"mutability": "mutable",
"name": "s",
"overrides": null,
"scope": 11,
"stateVariable": true,
"storageLocation": "default",
"type": "struct C.S",
"value": null,
"visibility": "internal"
},
"children":
@@ -102,7 +96,6 @@
{
"attributes":
{
"contractScope": null,
"name": "S",
"referencedDeclaration": 3,
"type": "struct C.S"
@@ -119,7 +112,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "ffae15ba",
"implemented": true,
"isConstructor": false,
@@ -129,7 +121,6 @@
null
],
"name": "e",
"overrides": null,
"scope": 11,
"stateMutability": "pure",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -74,7 +72,6 @@
}
]
},
"documentation": null,
"functionSelector": "5a2ee019",
"id": 5,
"implemented": true,
@@ -82,7 +79,6 @@
"modifiers": [],
"name": "m",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "5a2ee019",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "m",
"overrides": null,
"scope": 6,
"stateMutability": "nonpayable",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -182,7 +180,6 @@
}
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 5,
"implemented": true,
@@ -190,7 +187,6 @@
"modifiers": [],
"name": "f",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,7 +8,6 @@
]
},
"id": 7,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6,
"linearizedBaseContracts":
@@ -79,7 +77,6 @@
}
]
},
"documentation": null,
"functionSelector": "e2179b8e",
"id": 5,
"implemented": true,
@@ -87,7 +84,6 @@
"modifiers": [],
"name": "g",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "e2179b8e",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "g",
"overrides": null,
"scope": 6,
"stateMutability": "view",
"virtual": false,
@@ -8,8 +8,7 @@
[
6
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "f",
"overrides": null,
"scope": 6,
"stateMutability": "pure",
"virtual": false,
@@ -8,7 +8,6 @@
]
},
"id": 10,
"license": null,
"nodeType": "SourceUnit",
"nodes":
[
@@ -17,7 +16,6 @@
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 9,
"linearizedBaseContracts":
@@ -49,7 +47,6 @@
"mutability": "mutable",
"name": "x",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 7,
"src": "52:6:1",
"stateVariable": false,
@@ -71,12 +68,10 @@
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 5,
"initialValue": null,
"nodeType": "VariableDeclarationStatement",
"src": "52:6:1"
},
@@ -126,7 +121,6 @@
}
]
},
"documentation": null,
"functionSelector": "26121ff0",
"id": 8,
"implemented": true,
@@ -134,7 +128,6 @@
"modifiers": [],
"name": "f",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters":
{
"id": 1,
@@ -8,8 +8,7 @@
[
9
]
},
"license": null
}
},
"children":
[
@@ -26,7 +25,6 @@
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
@@ -40,7 +38,6 @@
{
"attributes":
{
"documentation": null,
"functionSelector": "26121ff0",
"implemented": true,
"isConstructor": false,
@@ -50,7 +47,6 @@
null
],
"name": "f",
"overrides": null,
"scope": 9,
"stateMutability": "pure",
"virtual": false,
@@ -93,8 +89,7 @@
"assignments":
[
4
],
"initialValue": null
]
},
"children":
[
@@ -104,12 +99,10 @@
"constant": false,
"mutability": "mutable",
"name": "x",
"overrides": null,
"scope": 7,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children":