File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ export class ContractDefinition implements SlangNode {
4949 // the same name as the contract.
5050 const compiler = coerce ( options . compiler ) ;
5151 if ( compiler && ! satisfies ( compiler , '>=0.5.0' ) ) {
52- for ( const member of this . members . items ) {
52+ for ( const { variant : member } of this . members . items ) {
5353 if (
54- member . variant . kind === NonterminalKind . FunctionDefinition &&
55- member . variant . name . variant . value !== this . name . value
54+ member . kind === NonterminalKind . FunctionDefinition &&
55+ member . name . variant . value !== this . name . value
5656 ) {
57- member . variant . cleanModifierInvocationArguments ( ) ;
57+ member . cleanModifierInvocationArguments ( ) ;
5858 }
5959 }
6060 }
Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ export class FallbackFunctionDefinition implements SlangNode {
5353 }
5454
5555 cleanModifierInvocationArguments ( ) : void {
56- for ( const attribute of this . attributes . items ) {
56+ for ( const { variant : attribute } of this . attributes . items ) {
5757 if (
58- typeof attribute . variant !== 'string' &&
59- attribute . variant . kind === NonterminalKind . ModifierInvocation
58+ typeof attribute !== 'string' &&
59+ attribute . kind === NonterminalKind . ModifierInvocation
6060 ) {
61- attribute . variant . cleanModifierInvocationArguments ( ) ;
61+ attribute . cleanModifierInvocationArguments ( ) ;
6262 }
6363 }
6464 }
Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ export class FunctionDefinition implements SlangNode {
6161 }
6262
6363 cleanModifierInvocationArguments ( ) : void {
64- for ( const attribute of this . attributes . items ) {
64+ for ( const { variant : attribute } of this . attributes . items ) {
6565 if (
66- typeof attribute . variant !== 'string' &&
67- attribute . variant . kind === NonterminalKind . ModifierInvocation
66+ typeof attribute !== 'string' &&
67+ attribute . kind === NonterminalKind . ModifierInvocation
6868 ) {
69- attribute . variant . cleanModifierInvocationArguments ( ) ;
69+ attribute . cleanModifierInvocationArguments ( ) ;
7070 }
7171 }
7272 }
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ export class ReceiveFunctionDefinition implements SlangNode {
4646 }
4747
4848 cleanModifierInvocationArguments ( ) : void {
49- for ( const attribute of this . attributes . items ) {
49+ for ( const { variant : attribute } of this . attributes . items ) {
5050 if (
51- typeof attribute . variant !== 'string' &&
52- attribute . variant . kind === NonterminalKind . ModifierInvocation
51+ typeof attribute !== 'string' &&
52+ attribute . kind === NonterminalKind . ModifierInvocation
5353 ) {
54- attribute . variant . cleanModifierInvocationArguments ( ) ;
54+ attribute . cleanModifierInvocationArguments ( ) ;
5555 }
5656 }
5757 }
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ export class UnnamedFunctionDefinition implements SlangNode {
4646 }
4747
4848 cleanModifierInvocationArguments ( ) : void {
49- for ( const attribute of this . attributes . items ) {
50- if ( typeof attribute . variant !== 'string' ) {
51- attribute . variant . cleanModifierInvocationArguments ( ) ;
49+ for ( const { variant : attribute } of this . attributes . items ) {
50+ if ( typeof attribute !== 'string' ) {
51+ attribute . cleanModifierInvocationArguments ( ) ;
5252 }
5353 }
5454 }
You can’t perform that action at this time.
0 commit comments