function buildExpression(
  encoded,
  type,
  parsingContext,
  compilationContext,
) {
  const expression = parse(encoded, type, parsingContext);
  return compile(expression, type, compilationContext);
}
@param {import('./expression.js').EncodedExpression} encoded The encoded expression.
@param {number} type The expected type.
@param {import('./expression.js').ParsingContext} parsingContext The parsing context.
@param {CompilationContext} compilationContext An existing compilation context
@return {CompiledExpression} The compiled expression.