Liana Husikyan
7359f68b9f
- added more tests to check constant specifier implementation
- deny use of const for local variables
- deny unitialized const variables
- only int, fixed strings, and enums can be declaired as const
10 years ago
Liana Husikyan
304256b546
- added isPartOfExternalInterface to Declaration
- changed position for the constant specifier. now it goes after type: <type> <constant> <name> = <value>
- removed tests for constant functions, checkings for constant function doesn't belong to this story
10 years ago
Liana Husikyan
6f11b6a73f
added parsing for constant variables
10 years ago
Lefteris Karapetsas
5c042e2e59
Small FixedBytes type fixes
- Integer Constant is explicitly convertible to FixedBytes, so using
that in the tests
10 years ago
Lefteris Karapetsas
0cd3b15373
byte is now an alias for byte1
10 years ago
Lefteris Karapetsas
bb205103c4
Most EndToEndTests are now compliant with the Bytes renaming
10 years ago
Lefteris Karapetsas
9d7ebacabc
Bytes Tokens properly named and NameAndTypeResolution tests work
10 years ago
Lefteris Karapetsas
f94648fbb2
NameAndtypeResolution tests use ETH_TEST macros
10 years ago
chriseth
77b9fdcfbc
Fix type checks for storage variable initializer.
10 years ago
Lefteris Karapetsas
1681fbd885
getInheritableMembers() does not look at BaseContracts
- Also adding tests for improper accessing members of other contracts.
10 years ago
Lefteris Karapetsas
b1dcc2a77f
VisibleInDerivedContracts() is now virtual()
- Plus an extra test for internal visibility in a base class variable
10 years ago
Lefteris Karapetsas
f2fdeb3599
Add structs to inheritable members
10 years ago
Lefteris Karapetsas
6d48abddd3
Adding test for base class statevar accessors
10 years ago
Christian
9252c02a63
Type checks for array assignment.
10 years ago
Christian
fba4484151
Replaced "inheritable" by "internal".
10 years ago
Christian
30bd6f271f
Parsing of array types and basic implementation.
10 years ago
Lefteris Karapetsas
952350bec1
Bugfix for functions override
- Functions with byte array type parameters can now be safely
overriden. Parameter location is now set at the right place.
- Also made a test for the fix
10 years ago
Christian
27d436a04c
Rename "protected" to "inheritable".
10 years ago
Christian
ed0384b759
No write access to parameters of external functions.
10 years ago
Christian
0185ac5a0d
"external" visibility specifier.
10 years ago
Christian
4b0a566e70
Some changes to enums.
10 years ago
Lefteris Karapetsas
c3c52d59b2
Removing ';' from the end of EnumDefinition
10 years ago
Lefteris Karapetsas
64bba8e3cc
Explicit conversion from int to Enum
10 years ago
Lefteris Karapetsas
c3c1b5c63c
Addressing issues with Enums in Solidity
10 years ago
Lefteris Karapetsas
fc6210e00f
Indentation fixes
10 years ago
Lefteris Karapetsas
5c164fb42c
Enum Value member access should now work properly
- Also detection of duplicate enum values and tests for them have been
added
10 years ago
Lefteris Karapetsas
07886f42bb
Enum type conversion and member value access.
- Added tests for the type conversion part.
- Enum member value access still needs some work
10 years ago
Lefteris Karapetsas
5659ed1238
Correcting and testing enum member access
10 years ago
Lefteris Karapetsas
2dbf739119
Enums NameAndTypeResolution - WIP
- Also adding an EndToEnd enum test
10 years ago
Christian
02f2070ddb
Copying structs.
10 years ago
Lu Guanqun
1372154ff2
small fixes per chris's comments
10 years ago
Lu Guanqun
aabc234e45
add two more exp tests
10 years ago
Liana Husikyan
2fd33d98cc
- implemented Empty parameter name story. Now the name of input/return parameters of function can be not specified.
- added appropriate tests
Conflicts:
test/SolidityEndToEndTest.cpp
test/SolidityNameAndTypeResolution.cpp
10 years ago
Christian
a90ec7576c
Some fixes for the ether units parser.
10 years ago
Lu Guanqun
07ecb2c1f2
disallow declaration of void type
https://www.pivotaltracker.com/n/projects/1189488/stories/86318578
10 years ago
Lu Guanqun
1252ed3b88
add several type error test cases
10 years ago
Lefteris Karapetsas
6c5120978e
Accessors for multiple mappings implemented
10 years ago
Christian
76da204e17
Visibility specifiers.
10 years ago
Lefteris Karapetsas
c6c8a1ceeb
Adding mapping treatment to FunctionType
Plus a TypeResolution test for it
10 years ago
Christian
cc00f49870
Fix scoping of event arguments.
10 years ago
Christian
edefb95aae
Fallback functions.
10 years ago
Christian
d3e2d2adf3
Parsing of events.
10 years ago
Lefteris Karapetsas
93abe45771
FunctionType now returns const ref for Declaration
10 years ago
Lefteris Karapetsas
23d92e0d2e
Removing Function and Param Description
- Removing FunctionDescription and ParamDescription. All the data should
now be in the FunctionType
- Plus using the FunctionTypePointer alias in a few places
10 years ago
Lefteris Karapetsas
122aada70f
Contract Interface Functions now return FunctionType
- Enchanced Function Type by declaration so that it can provide all the
required information at each place interface functions are consumed
- Changed all places where interface functions was used.
- Simplified Mix's FunctionDefinition code
10 years ago
Lefteris Karapetsas
51fb3b6f75
No longer exposing retrieveValueFromStorage() as a public function
- plus small fix in EndToEndTests
10 years ago
Lefteris Karapetsas
2fcfb45760
Various fixes pertaining to State Variable accessors
10 years ago
Lefteris Karapetsas
762aa2d0f3
Function name clashing with Statevariable accessor test
10 years ago
Lefteris Karapetsas
3732d42ce8
Various small fixes for Sol Automatic Accessors
10 years ago
Lefteris Karapetsas
06764f026e
State variable accessors code is now more organized
- FunctionDescription is the abstraction of what should describe a
function. It can either be a VariableDeclaration of a
FunctionDefinition.
- ParamDescription is what FunctionDescription uses to describe its
parameters for outside use purposes with a pair of (name, type)
strings
- Modified code around Solidity and especially interface handler to
adapt to this change
10 years ago