Skip to content

Commit 5c42e0e

Browse files
authored
add override and virtual to ConstructorAttribute (#849)
1 parent 2e226f7 commit 5c42e0e

21 files changed

Lines changed: 249 additions & 6 deletions

File tree

.changeset/rare-kiwis-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nomicfoundation/slang": patch
3+
---
4+
5+
add `override` and `virtual` to `ConstructorAttribute`

crates/solidity/inputs/language/src/definition.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,8 +2358,16 @@ codegen_language_macros::compile!(Language(
23582358
variants = [
23592359
EnumVariant(reference = ModifierInvocation),
23602360
EnumVariant(reference = InternalKeyword),
2361+
EnumVariant(
2362+
reference = OverrideKeyword,
2363+
enabled = Range(from = "0.6.0", till = "0.6.7")
2364+
),
23612365
EnumVariant(reference = PayableKeyword),
2362-
EnumVariant(reference = PublicKeyword)
2366+
EnumVariant(reference = PublicKeyword),
2367+
EnumVariant(
2368+
reference = VirtualKeyword,
2369+
enabled = Range(from = "0.6.0", till = "0.6.7")
2370+
)
23632371
]
23642372
),
23652373
Struct(

crates/solidity/outputs/cargo/slang_solidity/src/generated/language.rs

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/solidity/outputs/cargo/slang_solidity/src/generated/napi_interface/ast_selectors.rs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/solidity/outputs/cargo/tests/src/cst_output/generated/ConstructorDefinition.rs

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/solidity/outputs/cargo/tests/src/cst_output/generated/mod.rs

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/solidity/outputs/npm/package/src/ast/generated/ast_types.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/solidity/outputs/spec/generated/grammar.ebnf

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/solidity/outputs/spec/generated/public/02-definitions/08-functions.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/solidity/outputs/spec/generated/public/supported-versions.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)