File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export function createNonterminalVariantCreator<
5252 GenericFunction < U [ 'variant' ] > ,
5353 ConstructorsFromInstances < T [ 'variant' ] >
5454 ] [ ] ,
55- constructorsWithVariants : [
55+ extractVariantsConstructors : [
5656 GenericFunction < SlangPolymorphicNode > ,
5757 ConstructorsFromInstances < StrictPolymorphicNode >
5858 ] [ ]
@@ -63,16 +63,14 @@ export function createNonterminalVariantCreator<
6363) => T [ 'variant' ] {
6464 const createNonterminalVariantSimple =
6565 createNonterminalVariantSimpleCreator ( constructors ) ;
66- const variantWithVariantsConstructors = new Map ( constructorsWithVariants ) ;
66+ const extractVariantsConstructor = new Map ( extractVariantsConstructors ) ;
6767
6868 return (
6969 variant : U [ 'variant' ] | SlangPolymorphicNode ,
7070 collected : CollectedMetadata ,
7171 options ?: ParserOptions < AstNode >
7272 ) : T [ 'variant' ] => {
73- const constructor = variantWithVariantsConstructors . get (
74- variant . constructor
75- ) ;
73+ const constructor = extractVariantsConstructor . get ( variant . constructor ) ;
7674 if ( constructor !== undefined )
7775 return extractVariant ( new constructor ( variant , collected , options ) ) ;
7876
You can’t perform that action at this time.
0 commit comments