solidity/libsolidity/ast
Soham Zemse fa78e0f3d4 feat: allow named parameters in mapping types
Co-authored-by: Hari <webmail.hari@gmail.com>

test: add parser and abi test cases

docs: add example on using named parameters for mappings

- Add changelog

feat: update antlr grammar to allow named parameters in mappings

fix: prevent conflicting mapping parameter names

ref: change order of mapping initializers

test: update expectations and fix build

test: add more tests

fix: use common error & code for conflicting params

fix: issue with accessing nested mapping

test: add conflicting params tests for more nested levels

Update libsolidity/analysis/DeclarationTypeChecker.cpp

Co-authored-by: Nikola Matić <nikola.matic@ethereum.org>

fix: error reported with the same code twice

test: add more tests for 3 level nested mapping

Address review comments
2022-12-08 11:56:58 +01:00
..
AST_accept.h UsingForDirective: Rename m_functions to m_functionsOrLibrary 2022-11-07 23:58:19 +01:00
AST.cpp Improve FunctionSelector helpers 2022-09-27 17:58:32 +02:00
AST.h feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00
ASTAnnotations.cpp Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
ASTAnnotations.h Add all path declarations in IdentifierPath annotation 2022-06-20 18:08:57 +02:00
ASTEnums.h Checked arithmetic by default. 2020-10-19 16:58:37 +02:00
ASTForward.h Added AST node UserDefinedValueType 2021-09-07 19:42:51 +02:00
ASTJsonExporter.cpp feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00
ASTJsonExporter.h Rename _short in toString to _withoutDataLocation 2022-07-06 10:49:58 -04:00
ASTJsonImporter.cpp feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00
ASTJsonImporter.h Add location for parameter names in FunctionCall ASTNode 2022-06-29 18:37:36 +02:00
ASTUtils.cpp Warn about multiple assignments to storage byte pushes and fix warnings about multiple storage to storage copies. 2022-06-15 13:53:05 +02:00
ASTUtils.h Warn about multiple assignments to storage byte pushes and fix warnings about multiple storage to storage copies. 2022-06-15 13:53:05 +02:00
ASTVisitor.h Added AST node UserDefinedValueType 2021-09-07 19:42:51 +02:00
CallGraph.cpp Move CallGraph structure to a separate module 2021-02-23 10:47:02 +01:00
CallGraph.h Detect circular references for library and free functions 2021-03-30 23:06:30 +02:00
ExperimentalFeatures.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
TypeProvider.cpp feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00
TypeProvider.h feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00
Types.cpp feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00
Types.h feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00