Commit Graph

605 Commits

Author SHA1 Message Date
Liana Husikyan
e9238e15b4 Implemented passing arguments to the base constructor. 2015-03-02 14:28:08 +01:00
chriseth
32e210ecca Merge pull request #1146 from LefterisJP/sol_fixBaseClassAccessors
Sol fix accessing public variable of base class
2015-03-02 12:59:12 +01:00
chriseth
346d87cc63 Merge pull request #1174 from guanqun/add-tab-to-solc-output
let the error output take tab into consideration
2015-03-02 12:55:44 +01:00
Lefteris Karapetsas
4f13859f8c Using normal pointer in getInheritableMembers() 2015-03-02 12:08:32 +01:00
Lefteris Karapetsas
bbaa9fef6c getInheritableMembers() does not look at BaseContracts
- Also adding tests for improper accessing members of other contracts.
2015-03-02 11:51:13 +01:00
Lefteris Karapetsas
efe8f9f8a0 Use lambda to avoid code duplication in inheritableMembers 2015-03-02 11:51:13 +01:00
Lefteris Karapetsas
7db2b6fbdb VisibleInDerivedContracts() is now virtual()
- Plus an extra test for internal visibility in a base class variable
2015-03-02 11:51:13 +01:00
Lefteris Karapetsas
47177542f5 Add structs to inheritable members 2015-03-02 11:51:13 +01:00
Lefteris Karapetsas
5e4665b84d Adding inheritable members to a contract 2015-03-02 11:51:13 +01:00
Lu Guanqun
3da8b04037 let the error output take tab into consideration 2015-03-01 22:35:54 -06:00
Christian
3074d08b44 Array copy storage to storage. 2015-02-27 22:52:19 +01:00
Christian
2ea8f3a75a Type checks for array assignment. 2015-02-27 22:52:19 +01:00
Christian
87365f7612 Shortening of dynamic arrays. 2015-02-27 22:52:19 +01:00
Gav Wood
a5b4f18dd7 Fix warnings. 2015-02-26 13:19:34 +01:00
Christian
66b6860eb8 Stylistic changes. 2015-02-25 16:22:30 +01:00
Christian
29c614ebaf Removed code duplication. 2015-02-25 15:55:42 +01:00
Christian
cc31a7ab32 LValue refactoring. 2015-02-25 15:41:19 +01:00
Lefteris Karapetsas
7f3a544d2a Move SourceLocation to evmcore 2015-02-25 12:19:02 +01:00
Lefteris Karapetsas
ece19cb913 Tighter coupling for Assembly items retrieval
- Exposing only assembly items, not the entire compiler context
2015-02-25 12:02:58 +01:00
Lefteris Karapetsas
71b0d8107a LocationSetter in some extra places during Compiling
- Also adjusted the test, and fixed its error reporting
2015-02-25 10:40:14 +01:00
Lefteris Karapetsas
54121a0d78 Styling changes for SourceLocation and friends 2015-02-25 09:53:28 +01:00
Lefteris Karapetsas
fb328b778c Changes after rebase on top of Array Parsing 2015-02-24 17:31:06 +01:00
Lefteris Karapetsas
12c32392ab Simple Assembly Locations test
- Also adding some helper functions to SourceLocation
2015-02-24 17:16:22 +01:00
Lefteris Karapetsas
3e5c9a74b2 Reset CompilerContext's visited nodes at compile start 2015-02-24 17:16:22 +01:00
Lefteris Karapetsas
1891020ffb Moving Source Location libdevcore
- Big plus is we now remove the useless header libsolibity/BaseTypes.h
2015-02-24 17:16:22 +01:00
Lefteris Karapetsas
38cb123a82 Adding location information to assembly items
- In order to facilitate this addition we also now have a ScopeGuard
  object used in the Compiler to set the currently visited node.
2015-02-24 17:16:22 +01:00
Christian
820ed2dfe1 Out-of-bounds checking. 2015-02-23 18:28:33 +01:00
Christian
5d2323c914 Index and length access for dynamic arrays. 2015-02-23 18:28:30 +01:00
Christian
754c804d19 Implementation of index access. 2015-02-23 18:25:49 +01:00
Christian
3abbb8d625 Activate standard sources by default. 2015-02-23 16:28:18 +01:00
Gav Wood
44db8c26db Merge pull request #1100 from chriseth/sol_arrays
Parsing support for arrays.
2015-02-23 15:19:07 +01:00
Christian
39c471f332 Comments and warnings. 2015-02-23 14:55:06 +01:00
Christian
c8b03c51a0 Renames and comments. 2015-02-23 14:38:44 +01:00
Gav Wood
45fdd9b007 Merge pull request #1107 from chriseth/sol_inheritableIsInternal
Replaced "inheritable" by "internal".
2015-02-23 10:42:59 +01:00
Christian
a17108e3bc Replaced "inheritable" by "internal". 2015-02-22 19:37:54 +01:00
Christian
e7528c6af8 Stack height checks and fix. 2015-02-22 19:16:40 +01:00
Lefteris Karapetsas
c62828c8ff Adding default value to isLibrary 2015-02-21 18:55:55 +01:00
Christian
261786d909 Allow conversion to dynamic arrays and update grammar. 2015-02-21 18:25:08 +01:00
Lefteris Karapetsas
3367bf4b95 Removing temporary contracts
- They are now added as importable libraries
2015-02-21 16:31:25 +01:00
Lefteris Karapetsas
7b709c7c8a Adding Libraries as source units 2015-02-21 16:03:44 +01:00
Christian
be15e0b424 Index access. 2015-02-21 15:10:02 +01:00
Christian
5e32083179 Parsing of array types and basic implementation. 2015-02-21 15:10:01 +01:00
chriseth
75498a48d8 Merge pull request #1093 from LianaHus/sol_InlineMemberInits
Inline member inits
2015-02-21 14:53:45 +01:00
Liana Husikyan
fa3cd1cdc2 renamed local vaiable in fromDeclaration
added missing endvisit
2015-02-20 23:04:32 +01:00
Liana Husikyan
d0c36795a0 renamed fromIdentifier to fromStateVariable 2015-02-20 22:51:23 +01:00
Liana Husikyan
858acaa193 corrected accept for variableDeclaration
changes after code review
2015-02-20 22:51:16 +01:00
Liana Husikyan
1ed86b33bc cosmetic changes 2015-02-20 22:51:16 +01:00
Liana Husikyan
52050201e3 Inline member initialisation
renamed VariableDefinition class to VariableDeclarationStatement
added tests
2015-02-20 22:50:34 +01:00
Gav Wood
89d84edb16 Merge branch 'develop'
Conflicts:
	README.md
	evmjit
	libdevcrypto/CryptoPP.cpp
	libethereum/State.cpp
	neth/main.cpp
2015-02-20 21:56:37 +01:00
Gav Wood
8524051166 cppcheck fixes. 2015-02-20 21:00:13 +01:00