Add missing 'typeNode' to BoltTypeParameter
This commit is contained in:
parent
b0649fd8ed
commit
a426328e3a
2 changed files with 2 additions and 1 deletions
|
@ -115,6 +115,7 @@ node BoltFunctionTypeExpression > BoltTypeExpression {
|
|||
node BoltTypeParameter {
|
||||
index: usize,
|
||||
name: BoltIdentifier,
|
||||
typeNode: BoltTypeExpression,
|
||||
defaultType: Option<BoltTypeExpression>,
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue