aboutsummaryrefslogtreecommitdiffstats
path: root/test/cmdlineTests/standard_only_ast_requested
diff options
context:
space:
mode:
authorandrolo <androlo1980@gmail.com>2018-12-19 03:48:56 +0800
committerchriseth <chris@ethereum.org>2019-01-07 22:05:54 +0800
commitd2105be57d62e5113a086b555a747ac7b4601b41 (patch)
treed377350dbdde93d3512261b97f6a8a70eacc0900 /test/cmdlineTests/standard_only_ast_requested
parent6e626ad95502549d6b156c3b294990a450c590e1 (diff)
downloaddexon-solidity-d2105be57d62e5113a086b555a747ac7b4601b41.tar
dexon-solidity-d2105be57d62e5113a086b555a747ac7b4601b41.tar.gz
dexon-solidity-d2105be57d62e5113a086b555a747ac7b4601b41.tar.bz2
dexon-solidity-d2105be57d62e5113a086b555a747ac7b4601b41.tar.lz
dexon-solidity-d2105be57d62e5113a086b555a747ac7b4601b41.tar.xz
dexon-solidity-d2105be57d62e5113a086b555a747ac7b4601b41.tar.zst
dexon-solidity-d2105be57d62e5113a086b555a747ac7b4601b41.zip
Move actual test files.
Diffstat (limited to 'test/cmdlineTests/standard_only_ast_requested')
-rw-r--r--test/cmdlineTests/standard_only_ast_requested/input.json17
-rw-r--r--test/cmdlineTests/standard_only_ast_requested/output.json1
2 files changed, 18 insertions, 0 deletions
diff --git a/test/cmdlineTests/standard_only_ast_requested/input.json b/test/cmdlineTests/standard_only_ast_requested/input.json
new file mode 100644
index 00000000..7abd6da5
--- /dev/null
+++ b/test/cmdlineTests/standard_only_ast_requested/input.json
@@ -0,0 +1,17 @@
+{
+ "language": "Solidity",
+ "sources":
+ {
+ "A":
+ {
+ "content": "pragma solidity >=0.0; contract C { function f() public pure {} }"
+ }
+ },
+ "settings":
+ {
+ "outputSelection":
+ {
+ "*": { "": ["ast"] }
+ }
+ }
+}
diff --git a/test/cmdlineTests/standard_only_ast_requested/output.json b/test/cmdlineTests/standard_only_ast_requested/output.json
new file mode 100644
index 00000000..b884ab7d
--- /dev/null
+++ b/test/cmdlineTests/standard_only_ast_requested/output.json
@@ -0,0 +1 @@
+{"sources":{"A":{"ast":{"absolutePath":"A","exportedSymbols":{"C":[6]},"id":7,"nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity",">=","0.0"],"nodeType":"PragmaDirective","src":"0:22:0"},{"baseContracts":[],"contractDependencies":[],"contractKind":"contract","documentation":null,"fullyImplemented":true,"id":6,"linearizedBaseContracts":[6],"name":"C","nodeType":"ContractDefinition","nodes":[{"body":{"id":4,"nodeType":"Block","src":"61:2:0","statements":[]},"documentation":null,"id":5,"implemented":true,"kind":"function","modifiers":[],"name":"f","nodeType":"FunctionDefinition","parameters":{"id":2,"nodeType":"ParameterList","parameters":[],"src":"46:2:0"},"returnParameters":{"id":3,"nodeType":"ParameterList","parameters":[],"src":"61:0:0"},"scope":6,"src":"36:27:0","stateMutability":"pure","superFunction":null,"visibility":"public"}],"scope":7,"src":"23:42:0"}],"src":"0:65:0"},"id":0}}}