Skip to content

Commit 45d44e5

Browse files
committed
replace this.equalGreaterThan with '=>'
1 parent a219167 commit 45d44e5

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/slang-nodes/MappingType.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export class MappingType implements SlangNode {
1717

1818
keyType: MappingKey;
1919

20-
equalGreaterThan: string;
21-
2220
valueType: MappingValue;
2321

2422
constructor(
@@ -30,7 +28,6 @@ export class MappingType implements SlangNode {
3028
const { offsets } = metadata;
3129

3230
this.keyType = new MappingKey(ast.keyType, offsets[0]);
33-
this.equalGreaterThan = ast.equalGreaterThan.text;
3431
this.valueType = new MappingValue(ast.valueType, offsets[1], options);
3532

3633
metadata = updateMetadata(metadata, [this.keyType, this.valueType]);
@@ -43,7 +40,7 @@ export class MappingType implements SlangNode {
4340
return [
4441
'mapping(',
4542
path.call(print, 'keyType'),
46-
` ${this.equalGreaterThan} `,
43+
` => `,
4744
path.call(print, 'valueType'),
4845
')'
4946
];

0 commit comments

Comments
 (0)