Add missing 'typeNode' to BoltTypeParameter

This commit is contained in:
Sam Vervaeck 2020-05-27 09:08:07 +02:00
parent b0649fd8ed
commit a426328e3a
2 changed files with 2 additions and 1 deletions

View file

@ -115,6 +115,7 @@ node BoltFunctionTypeExpression > BoltTypeExpression {
node BoltTypeParameter {
index: usize,
name: BoltIdentifier,
typeNode: BoltTypeExpression,
defaultType: Option<BoltTypeExpression>,
}

View file

@ -834,7 +834,7 @@ export class Parser {
tokens.get();
typeBound = this.parseTypeExpression(tokens);
}
const node = createBoltTypeParameter(0, t0 as BoltIdentifier, typeBound)
const node = createBoltTypeParameter(0, t0 as BoltIdentifier, typeBound, null)
setOrigNodeRange(node, t0, t0);
return node;
}