-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation field added to ContractDefinition-Node #2331
Conversation
Can you add a test case to |
test/libsolidity/JSONCompiler.cpp
Outdated
@@ -92,7 +92,7 @@ BOOST_AUTO_TEST_CASE(basic_compilation) | |||
BOOST_CHECK(dev::jsonCompactPrint(result["sources"]["fileA"]["AST"]) == | |||
"{\"attributes\":{\"absolutePath\":\"fileA\",\"exportedSymbols\":{\"A\":[1]}}," | |||
"\"children\":[{\"attributes\":{\"baseContracts\":[null],\"contractDependencies\":[null]," | |||
"\"contractKind\":\"contract\",\"fullyImplemented\":true,\"linearizedBaseContracts\":[1]," | |||
"\"contractKind\":\"contract\",\"documentation\":null,\"fullyImplemented\":true,\"linearizedBaseContracts\":[1]," |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new indentation seems to follow the coding standard, but the line stands out. Maybe in a separate commit, you can fix the indentation around here.
@djudjuu please add a test that has a non-null documentation node, and also one that has a line break in the documentation. |
@chriseth there already is one non-null documentation-test in ASTJSON.cpp. do you want me to add another one? |
01f17da
to
ebdebc7
Compare
@djudjuu would be nice to have a dedicated test in Also can you add tests for non-legacy mode? |
adresses #2243