Skip to content

Commit

Permalink
fix Grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusaaguiar committed May 5, 2024
1 parent f00b00e commit b8174b5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/grammar/SolidityParser.g4
Expand Up @@ -262,7 +262,7 @@ userDefinedValueTypeDefinition:
* The declaration of a state variable.
*/
stateVariableDeclaration
locals [boolean constantnessSet = false, boolean visibilitySet = false, boolean overrideSpecifierSet = false]
locals [boolean constantnessSet = false, boolean visibilitySet = false, boolean overrideSpecifierSet = false, boolean transientLocationSet = false]
:
type=typeName
(
Expand All @@ -272,11 +272,9 @@ locals [boolean constantnessSet = false, boolean visibilitySet = false, boolean
| {!$constantnessSet}? Constant {$constantnessSet = true;}
| {!$overrideSpecifierSet}? overrideSpecifier {$overrideSpecifierSet = true;}
| {!$constantnessSet}? Immutable {$constantnessSet = true;}
| {!$transientLocationSet}? Transient {$transientLocationSet = true;}
)*
(
location=Transient name=identifier
| name=identifier
)
(transientName=Transient | name=identifier)
(Assign initialValue=expression)?
Semicolon;

Expand Down

0 comments on commit b8174b5

Please sign in to comment.