From aa633f44299b38f703133127bcb72a83ca318181 Mon Sep 17 00:00:00 2001 From: OmarTawfik <15987992+OmarTawfik@users.noreply.github.com> Date: Wed, 14 Aug 2024 20:17:14 -0700 Subject: [PATCH] upgrade slang version to `0.16.0` --- package-lock.json | 170 +++++++++--------- server/package.json | 2 +- .../finders/ConstantDefinition.ts | 2 - .../finders/ConstructorDefinition.ts | 2 - .../finders/ContractDefinition.ts | 2 - .../documentSymbol/finders/EnumDefinition.ts | 2 - .../documentSymbol/finders/ErrorDefinition.ts | 2 - .../documentSymbol/finders/EventDefinition.ts | 2 - .../finders/FallbackFunctionDefinition.ts | 2 - .../finders/FunctionDefinition.ts | 4 - .../finders/InterfaceDefinition.ts | 2 - .../finders/LibraryDefinition.ts | 2 - .../finders/ModifierDefinition.ts | 2 - .../finders/ReceiveFunctionDefinition.ts | 2 - .../finders/StateVariableDefinition.ts | 2 - .../finders/StructDefinition.ts | 2 - .../documentSymbol/finders/StructMember.ts | 2 - .../finders/UnnamedFunctionDefinition.ts | 2 - .../finders/UserDefinedValueTypeDefinition.ts | 2 - .../finders/VariableDeclarationStatement.ts | 2 - .../finders/YulFunctionDefinition.ts | 2 - .../ContractDefinitionHighlighter.ts | 2 - .../highlighters/CustomTypeHighlighter.ts | 4 - .../highlighters/EnumDefinitionHighlighter.ts | 2 - .../ErrorDefinitionHighlighter.ts | 2 - .../EventDefinitionHighlighter.ts | 2 - .../highlighters/EventEmissionHighlighter.ts | 4 - .../highlighters/FunctionCallHighlighter.ts | 4 - .../FunctionDefinitionHighlighter.ts | 4 - .../InterfaceDefinitionHighlighter.ts | 2 - .../LibraryDefinitionHighlighter.ts | 2 - .../StructDefinitionHighlighter.ts | 2 - ...erDefinedValueTypeDefinitionHighlighter.ts | 2 - 33 files changed, 86 insertions(+), 158 deletions(-) diff --git a/package-lock.json b/package-lock.json index 50c57b3b..1c79f406 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ }, "client": { "name": "hardhat-solidity", - "version": "0.8.3", + "version": "0.8.4", "license": "MIT", "dependencies": { "@nomicfoundation/solidity-language-server": "0.6.16", @@ -142,10 +142,10 @@ }, "coc": { "name": "@nomicfoundation/coc-solidity", - "version": "0.8.3", + "version": "0.8.4", "license": "MIT", "dependencies": { - "@nomicfoundation/solidity-language-server": "0.8.3" + "@nomicfoundation/solidity-language-server": "0.8.4" }, "devDependencies": { "coc.nvim": "^0.0.80", @@ -2538,101 +2538,101 @@ } }, "node_modules/@nomicfoundation/slang": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang/-/slang-0.15.1.tgz", - "integrity": "sha512-th7nxRWRXf583uHpWUCd8U7BYxIqJX2f3oZLff/mlPkqIr45pD2hLT/o00eCjrBIR8N7vybUULZg1CeThGNk7g==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang/-/slang-0.16.0.tgz", + "integrity": "sha512-JBI+X+6/1WnaVNvnWp7o9PRbIFpgxKDmEKzYnMUfrBGFmm7rT2PsvFvVBoZPeM09B0AFYK+XJt9tqnbJvzhlLw==", "license": "MIT", "dependencies": { - "@nomicfoundation/slang-darwin-arm64": "0.15.1", - "@nomicfoundation/slang-darwin-x64": "0.15.1", - "@nomicfoundation/slang-linux-arm64-gnu": "0.15.1", - "@nomicfoundation/slang-linux-arm64-musl": "0.15.1", - "@nomicfoundation/slang-linux-x64-gnu": "0.15.1", - "@nomicfoundation/slang-linux-x64-musl": "0.15.1", - "@nomicfoundation/slang-win32-arm64-msvc": "0.15.1", - "@nomicfoundation/slang-win32-ia32-msvc": "0.15.1", - "@nomicfoundation/slang-win32-x64-msvc": "0.15.1" + "@nomicfoundation/slang-darwin-arm64": "0.16.0", + "@nomicfoundation/slang-darwin-x64": "0.16.0", + "@nomicfoundation/slang-linux-arm64-gnu": "0.16.0", + "@nomicfoundation/slang-linux-arm64-musl": "0.16.0", + "@nomicfoundation/slang-linux-x64-gnu": "0.16.0", + "@nomicfoundation/slang-linux-x64-musl": "0.16.0", + "@nomicfoundation/slang-win32-arm64-msvc": "0.16.0", + "@nomicfoundation/slang-win32-ia32-msvc": "0.16.0", + "@nomicfoundation/slang-win32-x64-msvc": "0.16.0" }, "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-darwin-arm64": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-arm64/-/slang-darwin-arm64-0.15.1.tgz", - "integrity": "sha512-taPHlCUNNztQZJze9OlZFK9cZH8Ut4Ih4QJQo5CKebXx9vWOUtmSBfKv/M2P8hiV/iL7Q5sPwR7HY9uZYnb49Q==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-arm64/-/slang-darwin-arm64-0.16.0.tgz", + "integrity": "sha512-tdrpV2/sEy9pWevl6pg2qdG8chV5R2lO80D0vgwP3FTd27vwLRgAdSMSUlhtVSb8NWKx6E1dagjjNfabUzmZpQ==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-darwin-x64": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-x64/-/slang-darwin-x64-0.15.1.tgz", - "integrity": "sha512-kgZh5KQe/UcbFqn1EpyrvBuT8E6I1kWSgGPtO25t90zAqFv23sMUPdn7wLpMjngkD+quIIgrzQGUtupS5YYEig==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-x64/-/slang-darwin-x64-0.16.0.tgz", + "integrity": "sha512-a4OsidbwzaKOR7693ImYUSRKnmOs1xvTJviln0bc9nr6fngSkzXF7ijlHL/9/FrBhCIR+jY2ozmncWNOmqrvjQ==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-linux-arm64-gnu": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-gnu/-/slang-linux-arm64-gnu-0.15.1.tgz", - "integrity": "sha512-Iw8mepaccKRWllPU9l+hoe88LN9fScC0Px3nFeNQy26qk1ueO0tjovP1dhTvmGwHUxacOYPqhQTUn7Iu0oxNoQ==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-gnu/-/slang-linux-arm64-gnu-0.16.0.tgz", + "integrity": "sha512-4kHqeVbJ6HvmhSIP3p/vS4SjiaC8/TRbeh+6jT77mr6fb6fVxUcVdNwCTVPocn7GRx1rYAsuYqjYZkeS72ubzg==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-linux-arm64-musl": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-musl/-/slang-linux-arm64-musl-0.15.1.tgz", - "integrity": "sha512-zcesdQZwRgrT7ND+3TZUjRK/uGF20EfhEfCg8ZMhrb4Q7XaK1JvtHazIs03TV8Jcs30TPkEXks8Qi0Zdfy4RuA==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-musl/-/slang-linux-arm64-musl-0.16.0.tgz", + "integrity": "sha512-seuEaQSEGa3yqBI6Y/HH4X10+f7BNkX5OzOTNjWejqSIFAVBj0mWNBNWetT2YWDHRqiOSm5khD3+8LaSvShDRQ==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-linux-x64-gnu": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-gnu/-/slang-linux-x64-gnu-0.15.1.tgz", - "integrity": "sha512-FSmAnzKm58TFIwx4r/wOZtqfDx0nI6AfvnOh8kLDF5OxpWW3r0q9fq8lyaUReg9C/ZgCZRBn+m5WGrNKCZcvPQ==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-gnu/-/slang-linux-x64-gnu-0.16.0.tgz", + "integrity": "sha512-DI8sIWhz1EsuAE2L4vlBM48WaSaWpRgUixG1ZHIlxpTwzn6s+DxmfAxmOcBeLpNdtfba9eSpqF+2539zllktPQ==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-linux-x64-musl": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-musl/-/slang-linux-x64-musl-0.15.1.tgz", - "integrity": "sha512-hnoA/dgeHQ8aS0SReABYkxf0d/Q6DdaKsaYv6ev21wyQA7TROxT1X3nekECLGu1GYLML8pzvD9vyAMBRKOkkyg==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-musl/-/slang-linux-x64-musl-0.16.0.tgz", + "integrity": "sha512-80obGwJ336r5wxQ/dLzEDp1nlAYtMWdnP5G5T2JmCnIkxxEVnyQIH62VcK6mc7RMSVeAlL1RGGx2LdNbk9V4QA==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-win32-arm64-msvc": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-arm64-msvc/-/slang-win32-arm64-msvc-0.15.1.tgz", - "integrity": "sha512-2H0chHQ4uTh4l4UxN5fIVHR5mKaL5mfYTID6kxxxv2+KAh68EpYWwxLlkS5So90R2WcuPvFvTVKLm/uRo4h4dg==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-arm64-msvc/-/slang-win32-arm64-msvc-0.16.0.tgz", + "integrity": "sha512-hcmsfXjRaCuy5/eUhrdDOnE5uqfJ0vVXvon5mTHaWzf6UE4REIx3vJwf/t4QQu1Q4mKKO5ZxzauBdzRtbhOKsw==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-win32-ia32-msvc": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-ia32-msvc/-/slang-win32-ia32-msvc-0.15.1.tgz", - "integrity": "sha512-CVZWBnbpFlVBg/m7bsiw70jY3p9TGH9vxq0vLEEJ56yK+QPosxPrKMcADojtGjIOjWjPSZ+lCoo5ilnW0a249g==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-ia32-msvc/-/slang-win32-ia32-msvc-0.16.0.tgz", + "integrity": "sha512-W9959+Tdq71kkE5EGxoQWBxhpe9bjxpY7ozDoPjz2lBzaGi8X24z4toS6us3W83URIf6Cve0VizAX4fz5MWjFw==", "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/@nomicfoundation/slang-win32-x64-msvc": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-x64-msvc/-/slang-win32-x64-msvc-0.15.1.tgz", - "integrity": "sha512-cyER8M1fdBTzIfihy55d4LGGlN/eQxDqfRUTXgJf1VvNR98tRB0Q3nBfyh5PK2yP98B4lMt3RJYDqTQu+dOVDA==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-x64-msvc/-/slang-win32-x64-msvc-0.16.0.tgz", + "integrity": "sha512-sOKuMtm3g62ugdhgpWqjF+o3clIR4eAIiAbx6oRPGB/9fPukgZnI5untsgTYJyVldAzby7jlIQ4R7df18aNraw==", "license": "MIT", "engines": { "node": ">= 10" @@ -11645,10 +11645,10 @@ }, "server": { "name": "@nomicfoundation/solidity-language-server", - "version": "0.8.3", + "version": "0.8.4", "license": "MIT", "dependencies": { - "@nomicfoundation/slang": "0.15.1", + "@nomicfoundation/slang": "0.16.0", "@nomicfoundation/solidity-analyzer": "0.1.1" }, "bin": { @@ -13986,7 +13986,7 @@ "@nomicfoundation/coc-solidity": { "version": "file:coc", "requires": { - "@nomicfoundation/solidity-language-server": "0.8.3", + "@nomicfoundation/solidity-language-server": "0.8.4", "coc.nvim": "^0.0.80", "esbuild": "^0.16.0", "eslint": "^7.23.0" @@ -14238,65 +14238,65 @@ } }, "@nomicfoundation/slang": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang/-/slang-0.15.1.tgz", - "integrity": "sha512-th7nxRWRXf583uHpWUCd8U7BYxIqJX2f3oZLff/mlPkqIr45pD2hLT/o00eCjrBIR8N7vybUULZg1CeThGNk7g==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang/-/slang-0.16.0.tgz", + "integrity": "sha512-JBI+X+6/1WnaVNvnWp7o9PRbIFpgxKDmEKzYnMUfrBGFmm7rT2PsvFvVBoZPeM09B0AFYK+XJt9tqnbJvzhlLw==", "requires": { - "@nomicfoundation/slang-darwin-arm64": "0.15.1", - "@nomicfoundation/slang-darwin-x64": "0.15.1", - "@nomicfoundation/slang-linux-arm64-gnu": "0.15.1", - "@nomicfoundation/slang-linux-arm64-musl": "0.15.1", - "@nomicfoundation/slang-linux-x64-gnu": "0.15.1", - "@nomicfoundation/slang-linux-x64-musl": "0.15.1", - "@nomicfoundation/slang-win32-arm64-msvc": "0.15.1", - "@nomicfoundation/slang-win32-ia32-msvc": "0.15.1", - "@nomicfoundation/slang-win32-x64-msvc": "0.15.1" + "@nomicfoundation/slang-darwin-arm64": "0.16.0", + "@nomicfoundation/slang-darwin-x64": "0.16.0", + "@nomicfoundation/slang-linux-arm64-gnu": "0.16.0", + "@nomicfoundation/slang-linux-arm64-musl": "0.16.0", + "@nomicfoundation/slang-linux-x64-gnu": "0.16.0", + "@nomicfoundation/slang-linux-x64-musl": "0.16.0", + "@nomicfoundation/slang-win32-arm64-msvc": "0.16.0", + "@nomicfoundation/slang-win32-ia32-msvc": "0.16.0", + "@nomicfoundation/slang-win32-x64-msvc": "0.16.0" } }, "@nomicfoundation/slang-darwin-arm64": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-arm64/-/slang-darwin-arm64-0.15.1.tgz", - "integrity": "sha512-taPHlCUNNztQZJze9OlZFK9cZH8Ut4Ih4QJQo5CKebXx9vWOUtmSBfKv/M2P8hiV/iL7Q5sPwR7HY9uZYnb49Q==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-arm64/-/slang-darwin-arm64-0.16.0.tgz", + "integrity": "sha512-tdrpV2/sEy9pWevl6pg2qdG8chV5R2lO80D0vgwP3FTd27vwLRgAdSMSUlhtVSb8NWKx6E1dagjjNfabUzmZpQ==" }, "@nomicfoundation/slang-darwin-x64": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-x64/-/slang-darwin-x64-0.15.1.tgz", - "integrity": "sha512-kgZh5KQe/UcbFqn1EpyrvBuT8E6I1kWSgGPtO25t90zAqFv23sMUPdn7wLpMjngkD+quIIgrzQGUtupS5YYEig==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-x64/-/slang-darwin-x64-0.16.0.tgz", + "integrity": "sha512-a4OsidbwzaKOR7693ImYUSRKnmOs1xvTJviln0bc9nr6fngSkzXF7ijlHL/9/FrBhCIR+jY2ozmncWNOmqrvjQ==" }, "@nomicfoundation/slang-linux-arm64-gnu": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-gnu/-/slang-linux-arm64-gnu-0.15.1.tgz", - "integrity": "sha512-Iw8mepaccKRWllPU9l+hoe88LN9fScC0Px3nFeNQy26qk1ueO0tjovP1dhTvmGwHUxacOYPqhQTUn7Iu0oxNoQ==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-gnu/-/slang-linux-arm64-gnu-0.16.0.tgz", + "integrity": "sha512-4kHqeVbJ6HvmhSIP3p/vS4SjiaC8/TRbeh+6jT77mr6fb6fVxUcVdNwCTVPocn7GRx1rYAsuYqjYZkeS72ubzg==" }, "@nomicfoundation/slang-linux-arm64-musl": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-musl/-/slang-linux-arm64-musl-0.15.1.tgz", - "integrity": "sha512-zcesdQZwRgrT7ND+3TZUjRK/uGF20EfhEfCg8ZMhrb4Q7XaK1JvtHazIs03TV8Jcs30TPkEXks8Qi0Zdfy4RuA==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-musl/-/slang-linux-arm64-musl-0.16.0.tgz", + "integrity": "sha512-seuEaQSEGa3yqBI6Y/HH4X10+f7BNkX5OzOTNjWejqSIFAVBj0mWNBNWetT2YWDHRqiOSm5khD3+8LaSvShDRQ==" }, "@nomicfoundation/slang-linux-x64-gnu": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-gnu/-/slang-linux-x64-gnu-0.15.1.tgz", - "integrity": "sha512-FSmAnzKm58TFIwx4r/wOZtqfDx0nI6AfvnOh8kLDF5OxpWW3r0q9fq8lyaUReg9C/ZgCZRBn+m5WGrNKCZcvPQ==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-gnu/-/slang-linux-x64-gnu-0.16.0.tgz", + "integrity": "sha512-DI8sIWhz1EsuAE2L4vlBM48WaSaWpRgUixG1ZHIlxpTwzn6s+DxmfAxmOcBeLpNdtfba9eSpqF+2539zllktPQ==" }, "@nomicfoundation/slang-linux-x64-musl": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-musl/-/slang-linux-x64-musl-0.15.1.tgz", - "integrity": "sha512-hnoA/dgeHQ8aS0SReABYkxf0d/Q6DdaKsaYv6ev21wyQA7TROxT1X3nekECLGu1GYLML8pzvD9vyAMBRKOkkyg==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-musl/-/slang-linux-x64-musl-0.16.0.tgz", + "integrity": "sha512-80obGwJ336r5wxQ/dLzEDp1nlAYtMWdnP5G5T2JmCnIkxxEVnyQIH62VcK6mc7RMSVeAlL1RGGx2LdNbk9V4QA==" }, "@nomicfoundation/slang-win32-arm64-msvc": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-arm64-msvc/-/slang-win32-arm64-msvc-0.15.1.tgz", - "integrity": "sha512-2H0chHQ4uTh4l4UxN5fIVHR5mKaL5mfYTID6kxxxv2+KAh68EpYWwxLlkS5So90R2WcuPvFvTVKLm/uRo4h4dg==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-arm64-msvc/-/slang-win32-arm64-msvc-0.16.0.tgz", + "integrity": "sha512-hcmsfXjRaCuy5/eUhrdDOnE5uqfJ0vVXvon5mTHaWzf6UE4REIx3vJwf/t4QQu1Q4mKKO5ZxzauBdzRtbhOKsw==" }, "@nomicfoundation/slang-win32-ia32-msvc": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-ia32-msvc/-/slang-win32-ia32-msvc-0.15.1.tgz", - "integrity": "sha512-CVZWBnbpFlVBg/m7bsiw70jY3p9TGH9vxq0vLEEJ56yK+QPosxPrKMcADojtGjIOjWjPSZ+lCoo5ilnW0a249g==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-ia32-msvc/-/slang-win32-ia32-msvc-0.16.0.tgz", + "integrity": "sha512-W9959+Tdq71kkE5EGxoQWBxhpe9bjxpY7ozDoPjz2lBzaGi8X24z4toS6us3W83URIf6Cve0VizAX4fz5MWjFw==" }, "@nomicfoundation/slang-win32-x64-msvc": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-x64-msvc/-/slang-win32-x64-msvc-0.15.1.tgz", - "integrity": "sha512-cyER8M1fdBTzIfihy55d4LGGlN/eQxDqfRUTXgJf1VvNR98tRB0Q3nBfyh5PK2yP98B4lMt3RJYDqTQu+dOVDA==" + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-x64-msvc/-/slang-win32-x64-msvc-0.16.0.tgz", + "integrity": "sha512-sOKuMtm3g62ugdhgpWqjF+o3clIR4eAIiAbx6oRPGB/9fPukgZnI5untsgTYJyVldAzby7jlIQ4R7df18aNraw==" }, "@nomicfoundation/solidity-analyzer": { "version": "0.1.1", @@ -14377,7 +14377,7 @@ "version": "file:server", "requires": { "@istanbuljs/nyc-config-typescript": "1.0.2", - "@nomicfoundation/slang": "0.15.1", + "@nomicfoundation/slang": "0.16.0", "@nomicfoundation/solidity-analyzer": "0.1.1", "@sentry/node": "7.32.1", "@sentry/tracing": "7.32.1", diff --git a/server/package.json b/server/package.json index 16cf11d5..ac5d3018 100644 --- a/server/package.json +++ b/server/package.json @@ -87,7 +87,7 @@ "yaml": "^2.2.1" }, "dependencies": { - "@nomicfoundation/slang": "0.15.1", + "@nomicfoundation/slang": "0.16.0", "@nomicfoundation/solidity-analyzer": "0.1.1" } } diff --git a/server/src/services/documentSymbol/finders/ConstantDefinition.ts b/server/src/services/documentSymbol/finders/ConstantDefinition.ts index 87614bcb..e549e3e3 100644 --- a/server/src/services/documentSymbol/finders/ConstantDefinition.ts +++ b/server/src/services/documentSymbol/finders/ConstantDefinition.ts @@ -7,9 +7,7 @@ export class ConstantDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [ConstantDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/ConstructorDefinition.ts b/server/src/services/documentSymbol/finders/ConstructorDefinition.ts index 1c675b21..b88a11b1 100644 --- a/server/src/services/documentSymbol/finders/ConstructorDefinition.ts +++ b/server/src/services/documentSymbol/finders/ConstructorDefinition.ts @@ -7,9 +7,7 @@ export class ConstructorDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [ConstructorDefinition - ... @identifier [ConstructorKeyword] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/ContractDefinition.ts b/server/src/services/documentSymbol/finders/ContractDefinition.ts index cde8c553..3ad103a8 100644 --- a/server/src/services/documentSymbol/finders/ContractDefinition.ts +++ b/server/src/services/documentSymbol/finders/ContractDefinition.ts @@ -7,9 +7,7 @@ export class ContractDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [ContractDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/EnumDefinition.ts b/server/src/services/documentSymbol/finders/EnumDefinition.ts index 60e2611e..29800b47 100644 --- a/server/src/services/documentSymbol/finders/EnumDefinition.ts +++ b/server/src/services/documentSymbol/finders/EnumDefinition.ts @@ -7,9 +7,7 @@ export class EnumDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [EnumDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/ErrorDefinition.ts b/server/src/services/documentSymbol/finders/ErrorDefinition.ts index 9e2429be..b5a1df1d 100644 --- a/server/src/services/documentSymbol/finders/ErrorDefinition.ts +++ b/server/src/services/documentSymbol/finders/ErrorDefinition.ts @@ -7,9 +7,7 @@ export class ErrorDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [ErrorDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/EventDefinition.ts b/server/src/services/documentSymbol/finders/EventDefinition.ts index dfa7eb40..4e376bc8 100644 --- a/server/src/services/documentSymbol/finders/EventDefinition.ts +++ b/server/src/services/documentSymbol/finders/EventDefinition.ts @@ -7,9 +7,7 @@ export class EventDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [EventDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/FallbackFunctionDefinition.ts b/server/src/services/documentSymbol/finders/FallbackFunctionDefinition.ts index 42b40c1a..c6d4a6e4 100644 --- a/server/src/services/documentSymbol/finders/FallbackFunctionDefinition.ts +++ b/server/src/services/documentSymbol/finders/FallbackFunctionDefinition.ts @@ -7,9 +7,7 @@ export class FallbackFunctionDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [FallbackFunctionDefinition - ... @identifier [FallbackKeyword] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/FunctionDefinition.ts b/server/src/services/documentSymbol/finders/FunctionDefinition.ts index 077147c1..7861db58 100644 --- a/server/src/services/documentSymbol/finders/FunctionDefinition.ts +++ b/server/src/services/documentSymbol/finders/FunctionDefinition.ts @@ -7,13 +7,9 @@ export class FunctionDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [FunctionDefinition - ... [FunctionName - ... @identifier variant: [_] - ... ] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/InterfaceDefinition.ts b/server/src/services/documentSymbol/finders/InterfaceDefinition.ts index f6b5fe35..d83840ec 100644 --- a/server/src/services/documentSymbol/finders/InterfaceDefinition.ts +++ b/server/src/services/documentSymbol/finders/InterfaceDefinition.ts @@ -7,9 +7,7 @@ export class InterfaceDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [InterfaceDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/LibraryDefinition.ts b/server/src/services/documentSymbol/finders/LibraryDefinition.ts index 3f95b104..bb2107fd 100644 --- a/server/src/services/documentSymbol/finders/LibraryDefinition.ts +++ b/server/src/services/documentSymbol/finders/LibraryDefinition.ts @@ -7,9 +7,7 @@ export class LibraryDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [LibraryDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/ModifierDefinition.ts b/server/src/services/documentSymbol/finders/ModifierDefinition.ts index a36dbd4c..e46f7393 100644 --- a/server/src/services/documentSymbol/finders/ModifierDefinition.ts +++ b/server/src/services/documentSymbol/finders/ModifierDefinition.ts @@ -7,9 +7,7 @@ export class ModifierDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [ModifierDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/ReceiveFunctionDefinition.ts b/server/src/services/documentSymbol/finders/ReceiveFunctionDefinition.ts index d61ba091..bc5b1b51 100644 --- a/server/src/services/documentSymbol/finders/ReceiveFunctionDefinition.ts +++ b/server/src/services/documentSymbol/finders/ReceiveFunctionDefinition.ts @@ -7,9 +7,7 @@ export class ReceiveFunctionDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [ReceiveFunctionDefinition - ... @identifier [ReceiveKeyword] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/StateVariableDefinition.ts b/server/src/services/documentSymbol/finders/StateVariableDefinition.ts index 3e6e8c73..60e50b7b 100644 --- a/server/src/services/documentSymbol/finders/StateVariableDefinition.ts +++ b/server/src/services/documentSymbol/finders/StateVariableDefinition.ts @@ -7,9 +7,7 @@ export class StateVariableDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [StateVariableDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/StructDefinition.ts b/server/src/services/documentSymbol/finders/StructDefinition.ts index a2275425..ebfbab67 100644 --- a/server/src/services/documentSymbol/finders/StructDefinition.ts +++ b/server/src/services/documentSymbol/finders/StructDefinition.ts @@ -7,9 +7,7 @@ export class StructDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [StructDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/StructMember.ts b/server/src/services/documentSymbol/finders/StructMember.ts index 68101230..c9357852 100644 --- a/server/src/services/documentSymbol/finders/StructMember.ts +++ b/server/src/services/documentSymbol/finders/StructMember.ts @@ -7,9 +7,7 @@ export class StructMember extends SymbolFinder { public override readonly query = Query.parse(` @definition [StructMember - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/UnnamedFunctionDefinition.ts b/server/src/services/documentSymbol/finders/UnnamedFunctionDefinition.ts index 6821c12c..43622f2f 100644 --- a/server/src/services/documentSymbol/finders/UnnamedFunctionDefinition.ts +++ b/server/src/services/documentSymbol/finders/UnnamedFunctionDefinition.ts @@ -7,9 +7,7 @@ export class UnnamedFunctionDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [UnnamedFunctionDefinition - ... @identifier [FunctionKeyword] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/UserDefinedValueTypeDefinition.ts b/server/src/services/documentSymbol/finders/UserDefinedValueTypeDefinition.ts index 90c071a1..f20ac4ca 100644 --- a/server/src/services/documentSymbol/finders/UserDefinedValueTypeDefinition.ts +++ b/server/src/services/documentSymbol/finders/UserDefinedValueTypeDefinition.ts @@ -7,9 +7,7 @@ export class UserDefinedValueTypeDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [UserDefinedValueTypeDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/VariableDeclarationStatement.ts b/server/src/services/documentSymbol/finders/VariableDeclarationStatement.ts index 533a4160..fe795346 100644 --- a/server/src/services/documentSymbol/finders/VariableDeclarationStatement.ts +++ b/server/src/services/documentSymbol/finders/VariableDeclarationStatement.ts @@ -7,9 +7,7 @@ export class VariableDeclarationStatement extends SymbolFinder { public override readonly query = Query.parse(` @definition [VariableDeclarationStatement - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/documentSymbol/finders/YulFunctionDefinition.ts b/server/src/services/documentSymbol/finders/YulFunctionDefinition.ts index fcb12049..adbeadc3 100644 --- a/server/src/services/documentSymbol/finders/YulFunctionDefinition.ts +++ b/server/src/services/documentSymbol/finders/YulFunctionDefinition.ts @@ -7,9 +7,7 @@ export class YulFunctionDefinition extends SymbolFinder { public override readonly query = Query.parse(` @definition [YulFunctionDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/ContractDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/ContractDefinitionHighlighter.ts index 8129e8ce..a6a37e93 100644 --- a/server/src/services/semanticHighlight/highlighters/ContractDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/ContractDefinitionHighlighter.ts @@ -8,9 +8,7 @@ export class ContractDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [ContractDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/CustomTypeHighlighter.ts b/server/src/services/semanticHighlight/highlighters/CustomTypeHighlighter.ts index 4e45dfe6..77da446c 100644 --- a/server/src/services/semanticHighlight/highlighters/CustomTypeHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/CustomTypeHighlighter.ts @@ -8,13 +8,9 @@ export class CustomTypeHighlighter extends Highlighter { public override readonly query = Query.parse(` [TypeName - ... [IdentifierPath - ... @identifier [Identifier] - ... ] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/EnumDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/EnumDefinitionHighlighter.ts index 6b7f21fc..38c0c7f8 100644 --- a/server/src/services/semanticHighlight/highlighters/EnumDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/EnumDefinitionHighlighter.ts @@ -7,9 +7,7 @@ export class EnumDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [EnumDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/ErrorDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/ErrorDefinitionHighlighter.ts index d12ad740..1d4525e0 100644 --- a/server/src/services/semanticHighlight/highlighters/ErrorDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/ErrorDefinitionHighlighter.ts @@ -7,9 +7,7 @@ export class ErrorDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [ErrorDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/EventDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/EventDefinitionHighlighter.ts index 0d912fca..ae8476b6 100644 --- a/server/src/services/semanticHighlight/highlighters/EventDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/EventDefinitionHighlighter.ts @@ -8,9 +8,7 @@ export class EventDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [EventDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/EventEmissionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/EventEmissionHighlighter.ts index f4ed37be..08edcae1 100644 --- a/server/src/services/semanticHighlight/highlighters/EventEmissionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/EventEmissionHighlighter.ts @@ -9,13 +9,9 @@ export class EventEmissionHighlighter extends Highlighter { public override readonly query = Query.parse(` [EmitStatement - ... [IdentifierPath - ... @identifier [Identifier] - ... ] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/FunctionCallHighlighter.ts b/server/src/services/semanticHighlight/highlighters/FunctionCallHighlighter.ts index 7c3f60cc..07eeddde 100644 --- a/server/src/services/semanticHighlight/highlighters/FunctionCallHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/FunctionCallHighlighter.ts @@ -8,13 +8,9 @@ export class FunctionCallHighlighter extends Highlighter { public override readonly query = Query.parse(` [FunctionCallExpression - ... [Expression - ... @identifier [Identifier] - ... ] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/FunctionDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/FunctionDefinitionHighlighter.ts index ef52e37a..a3ac4bd4 100644 --- a/server/src/services/semanticHighlight/highlighters/FunctionDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/FunctionDefinitionHighlighter.ts @@ -8,13 +8,9 @@ export class FunctionDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [FunctionDefinition - ... [FunctionName - ... @identifier [Identifier] - ... ] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/InterfaceDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/InterfaceDefinitionHighlighter.ts index b7ace23b..c65586be 100644 --- a/server/src/services/semanticHighlight/highlighters/InterfaceDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/InterfaceDefinitionHighlighter.ts @@ -8,9 +8,7 @@ export class InterfaceDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [InterfaceDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/LibraryDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/LibraryDefinitionHighlighter.ts index 5d3669ae..e99d0363 100644 --- a/server/src/services/semanticHighlight/highlighters/LibraryDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/LibraryDefinitionHighlighter.ts @@ -7,9 +7,7 @@ export class LibraryDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [LibraryDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/StructDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/StructDefinitionHighlighter.ts index d3ded61f..0b149c24 100644 --- a/server/src/services/semanticHighlight/highlighters/StructDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/StructDefinitionHighlighter.ts @@ -8,9 +8,7 @@ export class StructDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [StructDefinition - ... @identifier name: [_] - ... ] `); } diff --git a/server/src/services/semanticHighlight/highlighters/UserDefinedValueTypeDefinitionHighlighter.ts b/server/src/services/semanticHighlight/highlighters/UserDefinedValueTypeDefinitionHighlighter.ts index ee37d2b7..0e9b5422 100644 --- a/server/src/services/semanticHighlight/highlighters/UserDefinedValueTypeDefinitionHighlighter.ts +++ b/server/src/services/semanticHighlight/highlighters/UserDefinedValueTypeDefinitionHighlighter.ts @@ -7,9 +7,7 @@ export class UserDefinedValueTypeDefinitionHighlighter extends Highlighter { public override readonly query = Query.parse(` [UserDefinedValueTypeDefinition - ... @identifier name: [_] - ... ] `); }