Lefteris Karapetsas
2fcfb45760
Various fixes pertaining to State Variable accessors
10 years ago
Lefteris Karapetsas
ffa06e1a05
Explicitly specify insertion to exported functions
10 years ago
Lefteris Karapetsas
50a4b6055b
Fixes after rebasing on develop
10 years ago
Lefteris Karapetsas
94ca9f0040
All interface functions are external.
10 years ago
Lefteris Karapetsas
3732d42ce8
Various small fixes for Sol Automatic Accessors
10 years ago
Lefteris Karapetsas
3d1c0a9bef
Modifications to Mix to adapt to FunctionDescription
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
Lefteris Karapetsas
818742dac9
Work in progress for state variable accessors
- Changed the code so that a generic declaration with the combination of
a function type can be used wherer a function definition was used
before
- Since using an std::pair everywhere is really tiring with this commit
I am in the process of abstracting it into a function
10 years ago
Christian
fd1f7b527f
Cleaner solution to provide standard sources.
10 years ago
Christian
fdf791149d
Compilation of function modifiers.
10 years ago
Christian
2566466a6c
Type resolution for function modifiers.
10 years ago
Christian
133610be56
Function modifier parsing.
10 years ago
Christian
747bf7f2d4
Include virtual function overrides in constructor context.
10 years ago
Christian
50c0a0ed66
Constructor arguments for base classes.
10 years ago
Christian
4fe47c5014
Explicit calls to base class function.
10 years ago
Christian
ffead7b4d5
Check overrides and provide inherited public interface.
10 years ago
Christian
e16d88c894
Check for hash collisions already before compiling.
10 years ago
Christian
de3e6a09db
Specify value for contract creation.
10 years ago
Christian
a017d2b1de
Remove const from make_shared to allow enable_shared_from_this to work on MacOS.
10 years ago
Christian
e1338c7e6c
Arbitrary precision integer constants.
10 years ago
Christian
f6ddd3fd33
Possibility for unary operators to change type.
10 years ago
Christian
874b2b34ea
Use shared_from_this instead of manually supplying a shared_ptr to this.
10 years ago
Lefteris Karapetsas
5e77063c38
Fixing a solAssert in getInterfacefunctions()
10 years ago
Lefteris Karapetsas
299305548f
Adjustments to Solidity compiler code for Function Hash
10 years ago
Christian
7158f408ac
Remove const from make_shared to allow enable_shared_from_this to work on MacOS.
10 years ago
Christian
1d3801f726
Arbitrary precision integer constants.
10 years ago
Christian
cc55936f67
Possibility for unary operators to change type.
10 years ago
Christian
ff4fe8257a
Use shared_from_this instead of manually supplying a shared_ptr to this.
10 years ago
Lefteris Karapetsas
b8b75c841b
Solidity getInterfaceFunctions is now a map of hash to Function
- Also introduced dependency between libsolidity and libdevcrypto
- Compler's appendFunctionSelector now has a first version of using
function signature hash instead of index
10 years ago
Lefteris Karapetsas
48080e0415
Small issues with Canonical Function Signature
- Also added an extra test
10 years ago
Lefteris Karapetsas
0c003958b9
FunctionType also gets CanonicalSignature
- also using iterators in the signature creation function
10 years ago
Lefteris Karapetsas
0c83932d91
Test for the Canonical Signature of a function
10 years ago
Lefteris Karapetsas
c2b194d4c3
Creating the canonical signature of a function, for later use in the ABI
10 years ago
Christian
6e36344632
Possibility for binary operators to yield types different from their operands'.
10 years ago
Christian
46664c44b3
Assertions that throw InternalCompilerErrors.
10 years ago
Lefteris Karapetsas
5eec2c5ac6
ForStatement typecheck and initExpression is a Statement
10 years ago
Lefteris Karapetsas
30c000d121
Adding a ForStatement solidity AST Node.
- Adding ForStatement node
- Implemented Parsing for ForStatement
- A simple parsing test for the ForStatement
- Work in progress
10 years ago
Christian
a3473ad88d
Check that constructor does not have "returns" directive.
10 years ago
Christian
5026c5855d
Create contracts.
10 years ago
Christian
37a15d96ea
Support empty strings.
10 years ago
Christian
781d58d705
String types.
10 years ago
Christian
d4d1369f6e
Move implementations of ::accept out of AST.cpp.
10 years ago
Christian
a03f2870c6
More const cleanup.
10 years ago
Christian
2506b42da8
Clear separation between ASTVisitor and ASTConstVisitor and more const specifiers.
10 years ago
Christian
169139a066
Const functions for ASTVisitor and const ASTPrinter.
10 years ago
Christian
8621949067
Import directive.
10 years ago
Christian
a2aa117a6b
Disallow assignments to structs and mappings.
10 years ago
Christian
d759075528
More general function types and references.
10 years ago
Christian
27d20cd849
Magic variables.
10 years ago
Christian
638960f22f
Contracts as types and framework for special global variables.
10 years ago