Skip to content

Commit da9a920

Browse files
committed
reversing the order of the parameter types to match the key, value order in the Map
1 parent 5f96403 commit da9a920

23 files changed

Lines changed: 46 additions & 46 deletions

src/slang-nodes/ArgumentsDeclaration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import type { CollectedMetadata } from '../types.d.ts';
1010
import type { AstNode } from './types.d.ts';
1111

1212
const createNonterminalVariant = createNonterminalVariantCreator<
13-
ArgumentsDeclaration,
14-
ast.ArgumentsDeclaration
13+
ast.ArgumentsDeclaration,
14+
ArgumentsDeclaration
1515
>([
1616
[ast.PositionalArgumentsDeclaration, PositionalArgumentsDeclaration],
1717
[ast.NamedArgumentsDeclaration, NamedArgumentsDeclaration]

src/slang-nodes/ContractMember.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import type { CollectedMetadata } from '../types.d.ts';
2121
import type { AstNode } from './types.d.ts';
2222

2323
const createNonterminalVariant = createNonterminalVariantCreator<
24-
ContractMember,
25-
ast.ContractMember
24+
ast.ContractMember,
25+
ContractMember
2626
>([
2727
[ast.UsingDirective, UsingDirective],
2828
[ast.FunctionDefinition, FunctionDefinition],

src/slang-nodes/ContractSpecifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import type { CollectedMetadata } from '../types.d.ts';
1010
import type { AstNode } from './types.d.ts';
1111

1212
const createNonterminalVariant = createNonterminalVariantCreator<
13-
ContractSpecifier,
14-
ast.ContractSpecifier
13+
ast.ContractSpecifier,
14+
ContractSpecifier
1515
>([
1616
[ast.InheritanceSpecifier, InheritanceSpecifier],
1717
[ast.StorageLayoutSpecifier, StorageLayoutSpecifier]

src/slang-nodes/Expression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import type { CollectedMetadata } from '../types.d.ts';
3939
import type { AstNode } from './types.d.ts';
4040

4141
const createNonterminalVariant = createNonterminalVariantCreator<
42-
Expression,
43-
ast.Expression
42+
ast.Expression,
43+
Expression
4444
>(
4545
[
4646
[ast.AssignmentExpression, AssignmentExpression],

src/slang-nodes/FallbackFunctionAttribute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import type { CollectedMetadata } from '../types.d.ts';
1414
import type { AstNode } from './types.d.ts';
1515

1616
const createNonterminalVariant = createNonterminalVariantCreator<
17-
FallbackFunctionAttribute,
18-
ast.FallbackFunctionAttribute
17+
ast.FallbackFunctionAttribute,
18+
FallbackFunctionAttribute
1919
>([
2020
[ast.ModifierInvocation, ModifierInvocation],
2121
[ast.OverrideSpecifier, OverrideSpecifier]

src/slang-nodes/ForStatementInitialization.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import type { CollectedMetadata } from '../types.d.ts';
1515
import type { AstNode } from './types.d.ts';
1616

1717
const createNonterminalVariant = createNonterminalVariantCreator<
18-
ForStatementInitialization,
19-
ast.ForStatementInitialization
18+
ast.ForStatementInitialization,
19+
ForStatementInitialization
2020
>([
2121
[ast.ExpressionStatement, ExpressionStatement],
2222
[ast.VariableDeclarationStatement, VariableDeclarationStatement],

src/slang-nodes/FunctionAttribute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import type { CollectedMetadata } from '../types.d.ts';
1414
import type { AstNode } from './types.d.ts';
1515

1616
const createNonterminalVariant = createNonterminalVariantCreator<
17-
FunctionAttribute,
18-
ast.FunctionAttribute
17+
ast.FunctionAttribute,
18+
FunctionAttribute
1919
>([
2020
[ast.ModifierInvocation, ModifierInvocation],
2121
[ast.OverrideSpecifier, OverrideSpecifier]

src/slang-nodes/ImportClause.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import type { CollectedMetadata } from '../types.d.ts';
1111
import type { AstNode } from './types.d.ts';
1212

1313
const createNonterminalVariant = createNonterminalVariantCreator<
14-
ImportClause,
15-
ast.ImportClause
14+
ast.ImportClause,
15+
ImportClause
1616
>([
1717
[ast.PathImport, PathImport],
1818
[ast.NamedImport, NamedImport],

src/slang-nodes/MappingKeyType.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { IdentifierPath } from './IdentifierPath.js';
88
import type { CollectedMetadata } from '../types.d.ts';
99

1010
const createNonterminalVariant = createNonterminalVariantCreator<
11-
MappingKeyType,
12-
ast.MappingKeyType
11+
ast.MappingKeyType,
12+
MappingKeyType
1313
>(
1414
[[ast.IdentifierPath, IdentifierPath]],
1515
[[ast.ElementaryType, ElementaryType]]

src/slang-nodes/Pragma.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import type { CollectedMetadata } from '../types.d.ts';
1111
import type { AstNode } from './types.d.ts';
1212

1313
const createNonterminalVariant = createNonterminalVariantCreator<
14-
Pragma,
15-
ast.Pragma
14+
ast.Pragma,
15+
Pragma
1616
>([
1717
[ast.AbicoderPragma, AbicoderPragma],
1818
[ast.ExperimentalPragma, ExperimentalPragma],

0 commit comments

Comments
 (0)