Merge pull request #12043 from ethereum/exportCanonicalName

Export canonicalName
This commit is contained in:
chriseth
2021-09-29 10:11:30 +02:00
committed by GitHub
58 changed files with 76 additions and 4 deletions
@@ -14,6 +14,7 @@
{
"abstract": true,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"id": 8,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"id": 6,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -18,6 +18,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "A",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -121,6 +122,7 @@
"src": "50:1:1"
}
],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -30,6 +30,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "A",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -64,6 +65,7 @@
"src": "29:1:1"
}
],
"canonicalName": "B",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -99,6 +101,7 @@
"src": "49:1:1"
}
],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -135,6 +138,7 @@
"src": "69:1:1"
}
],
"canonicalName": "D",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -172,6 +176,7 @@
"src": "89:1:1"
}
],
"canonicalName": "E",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -15,6 +15,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"documentation":
@@ -57,6 +58,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"documentation":
@@ -99,6 +101,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -18,6 +18,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C1",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -52,6 +53,7 @@
"src": "30:2:1"
}
],
"canonicalName": "C2",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -15,6 +15,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "c",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "c",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+3
View File
@@ -22,6 +22,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "A",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -94,6 +95,7 @@
"src": "72:1:1"
}
],
"canonicalName": "B",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": false,
@@ -207,6 +209,7 @@
"src": "167:1:1"
}
],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "c",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "c",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -22,6 +22,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "A",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -79,6 +80,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "B",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -164,6 +166,7 @@
"src": "117:1:1"
}
],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1
View File
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -112,6 +112,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -24,6 +24,7 @@
"nodes":
[
{
"canonicalName": "MyAddress",
"id": 2,
"name": "MyAddress",
"nameLocation": "5:9:1",
@@ -44,6 +45,7 @@
}
},
{
"canonicalName": "MyUInt",
"id": 4,
"name": "MyUInt",
"nameLocation": "32:6:1",
@@ -202,6 +204,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -216,6 +219,7 @@
"nodes":
[
{
"canonicalName": "C.MyAddress",
"id": 18,
"name": "MyAddress",
"nameLocation": "118:9:1",
@@ -236,6 +240,7 @@
}
},
{
"canonicalName": "C.MyUInt",
"id": 20,
"name": "MyUInt",
"nameLocation": "149:6:1",
@@ -18,6 +18,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "L",
"contractDependencies": [],
"contractKind": "library",
"fullyImplemented": true,
@@ -37,6 +38,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "C",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
@@ -14,6 +14,7 @@
{
"abstract": false,
"baseContracts": [],
"canonicalName": "Sample",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": true,
+1 -1
View File
@@ -485,7 +485,7 @@ BOOST_AUTO_TEST_CASE(basic_compilation)
BOOST_CHECK_EQUAL(
util::jsonCompactPrint(result["sources"]["fileA"]["ast"]),
"{\"absolutePath\":\"fileA\",\"exportedSymbols\":{\"A\":[1]},\"id\":2,\"nodeType\":\"SourceUnit\",\"nodes\":[{\"abstract\":false,"
"\"baseContracts\":[],\"contractDependencies\":[],\"contractKind\":\"contract\",\"fullyImplemented\":true,\"id\":1,"
"\"baseContracts\":[],\"canonicalName\":\"A\",\"contractDependencies\":[],\"contractKind\":\"contract\",\"fullyImplemented\":true,\"id\":1,"
"\"linearizedBaseContracts\":[1],\"name\":\"A\",\"nameLocation\":\"9:1:0\",\"nodeType\":\"ContractDefinition\",\"nodes\":[],\"scope\":2,"
"\"src\":\"0:14:0\",\"usedErrors\":[]}],\"src\":\"0:14:0\"}"
);