Commit Graph
1050 Commits
Author SHA1 Message Date
wechman 5cf88593fd Add userDefinedFunctionType helper function 2022-09-28 13:09:30 +02:00
wechman 577a5bb7a4 Additional asserts in ASTJsonImporter::createUsingForDirective 2022-09-28 13:09:30 +02:00
wechman d730e92dde Rename Type::userDefinedOperator to Type::operatorDefinition 2022-09-28 13:09:30 +02:00
wechman 7b81a65bc6 Fixes after rebase 2022-09-28 13:09:16 +02:00
wechman 5fdd9cf591 Update UsingForDirective::functionsAndOperators to not expose ranges-v3 2022-09-28 13:09:15 +02:00
wechman dcce3fa89b "Operator has not been user-defined." is displayed only is operator can be user-defined 2022-09-28 13:09:15 +02:00
wechman 1a8564545e Minor fixes after code review 2022-09-28 13:09:15 +02:00
wechman c507d24a78 OperationAnnotation::userDefinedFunction can be set only once 2022-09-28 13:09:13 +02:00
wechman 697d279165 Rename unctionType::bound() to unctionType::boundToType() 2022-09-28 13:08:32 +02:00
wechman c5640fb125 Unify vocabulary related to the feature. 2022-09-28 13:08:32 +02:00
wechman 5572d3aed8 Adjustments after review 2022-09-28 13:07:59 +02:00
wechman 6feb8aea73 Rework error handlig of user type operators 2022-09-28 13:07:58 +02:00
wechman b860561814 Simplify Type::userDefinedOperator function 2022-09-28 13:07:58 +02:00
wechman e3f5c4c1b5 An extra assert for no operator for libraries in ASTJsonExporter::visit 2022-09-28 13:07:58 +02:00
wechman c61d5b457e Update UsingForDirective docstring 2022-09-28 13:07:58 +02:00
wechman 9e1ba093d5 Minor changes after code review 2022-09-28 13:07:58 +02:00
wechman 70255f8776 Revert "Update OperationAnnotation to use SetOnce for userDefinedFunction"
This reverts commit 29707c7b9a4884f0a5a8ada47cce4859401c8d53.
2022-09-28 13:07:57 +02:00
wechman d124f83b88 Update OperationAnnotation to use SetOnce for userDefinedFunction 2022-09-28 13:07:12 +02:00
wechman fee6b5f96c Type::userDefinedOperator takes return parameters into account 2022-09-28 13:06:25 +02:00
wechman 3be5114fb0 Update code to review comments 2022-09-28 13:06:25 +02:00
wechman c1dc8df9c9 Adjust code to review findings 2022-09-28 13:06:25 +02:00
wechman 8307b670cb Handle not unique operators for user-defined type. 2022-09-28 12:10:27 +02:00
wechman 8272da0aea Add test: operator_parameter_with_wrong_data_location 2022-09-28 12:10:27 +02:00
wechman c274d07a73 Remove out of date TODOs 2022-09-28 12:05:41 +02:00
wechman 56bcb525bc Unary operators with using for directive fix 2022-09-28 12:05:41 +02:00
chriseth 3bd047f188 Using for for operators. 2022-09-28 11:32:03 +02:00
Alex Beregszaszi 725253551e Improve FunctionSelector helpers 2022-09-27 17:58:32 +02:00
Damian Wechman 6b99162457 Merge pull request #13406 from ethereum/slot_on_reference_fix
Fix `.slot` accessing via mapping reference in assembly
2022-09-05 14:00:18 +02:00
Leo 242096695f Merge pull request #13428 from ethereum/qualify-move
Add std:: qualifier to move() calls
2022-08-30 11:57:54 +02:00
Marenz f7cc29bec1 Add std:: qualifier to move() calls 2022-08-30 11:12:15 +02:00
tcoyvwac 3d54bfd0c3 ast: condense duplicate code
AST.cpp:
* Added findClause() helper function to anonymous namespace.
2022-08-25 14:45:22 +02:00
wechman cf3bae0839 Fix "slot" access via mapping reference in assembly 2022-08-17 07:53:52 +02:00
Leonid Pospelov 4682c01920 Update ASTJsonExporter.cpp 2022-08-14 03:07:01 +03:00
Duc Thanh Nguyen e0ba7ef0d3 Rename _short in toString to _withoutDataLocation 2022-07-06 10:49:58 -04:00
Duc Thanh Nguyen 0a14368315 Display human readable type name in conversion error message 2022-07-06 10:49:51 -04:00
Mathias L. Baumann d4e2c2cc89 Merge pull request #13185 from ethereum/functionCall_locations
Add location for parameter names in FunctionCall ASTNode
2022-07-04 16:40:45 +02:00
Marenz 3a5218d3d5 Add location for parameter names in FunctionCall ASTNode 2022-06-29 18:37:36 +02:00
Marenz ee710eadd4 Add location for member in MemberAccess ASTNode 2022-06-29 18:37:09 +02:00
Mathias L. Baumann 2397f09b79 Merge pull request #13182 from ethereum/identifierPath_declarations
Add all path declarations in IdentifierPath annotation
2022-06-27 12:35:50 +02:00
Marenz 5d2e134378 Add all path locations to the IdentifierPath ASTNode 2022-06-21 14:19:45 +02:00
Marenz 18784cff81 Add all path declarations in IdentifierPath annotation 2022-06-20 18:08:57 +02:00
Marenz c88c74ceb8 Rename ASTJsonConverter to ASTJsonExporter
given that we have an ASTJsonImporter this name makes more sense.
2022-06-16 18:05:51 +02:00
Daniel KirchnerandKamil Śliwak 16245f7b9b Warn about multiple assignments to storage byte pushes and fix warnings about multiple storage to storage copies.
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2022-06-15 13:53:05 +02:00
Daniel Kirchner d30b04674e Add resolveUnaryTuples helper. 2022-06-15 13:15:26 +02:00
Kamil Śliwak acbdcc3711 Revert the change that made events accessible in other contacts via qualified access 2022-06-14 12:04:14 +02:00
Ryan 4b7ed2d47a Display human readable type name in conversion error message 2022-06-08 18:23:51 +05:30
Christian Parpart 4ae43884d0 Apply a better way to annotate unreachability to the C++ compiler. 2022-06-07 16:41:04 +02:00
Kamil Śliwak 539e139555 Add explicit throws after some assertions to work around a spurious warning in GCC 12.1 2022-06-01 20:37:48 +02:00
nishant-sachdeva d4c06d2b4e Adding event and error selector fields on the lines of the function selector fields 2022-05-23 10:49:16 +02:00
chriseth dfa0bcf760 More strict override check for data locations. 2022-05-17 13:02:12 +02:00