How to use the @glimmer/util.exhausted function in @glimmer/util

To help you get started, we’ve selected a few @glimmer/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glimmerjs / glimmer-vm / packages / @glimmer / opcode-compiler / lib / syntax / push-resolution.ts View on Github external
concatExpressions(encoder, context, expressions, constants);

          break;
        }

        default:
          throw new Error(
            `unimplemented: Can't evaluate expression in context ${expressionContext}`
          );
      }

      break;
    }
    default:
      return exhausted(operation);
  }
}
github glimmerjs / glimmer-vm / packages / @glimmer / opcode-compiler / lib / syntax / push-compile.ts View on Github external
return compileBlockOp(context, action);
    case HighLevelCompileOpcode.CompileInline:
      return compileInlineOp(context, action);
    case HighLevelCompileOpcode.InvokeStatic:
      return invokeStatic(context.syntax, action);
    case HighLevelCompileOpcode.Args:
      return compileArgs(action.op1);
    case HighLevelCompileOpcode.PushCompilable:
      return pushCompilable(action.op1, context.syntax);
    case HighLevelCompileOpcode.DynamicComponent:
      return dynamicComponent(context, action);
    case HighLevelCompileOpcode.IfResolvedComponent:
      return ifResolvedComponent(context, action);

    default:
      return exhausted(action);
  }
}