@glimmer/wire-format
Version:
3 lines (2 loc) • 1.68 kB
JavaScript
const t={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54},e={Strict:0,ResolveAsComponentOrHelperHead:1,ResolveAsHelperHead:5,ResolveAsModifierHead:6,ResolveAsComponentHead:7},n={class:0,id:1,value:2,name:3,type:4,style:5,href:6},r={div:0,span:1,p:2,a:3};function o(t){return function(e){return Array.isArray(e)&&e[0]===t}}const i=o(t.FlushElement);function a(e){return e[0]===t.StaticAttr||e[0]===t.DynamicAttr||e[0]===t.TrustingDynamicAttr||e[0]===t.ComponentAttr||e[0]===t.StaticComponentAttr||e[0]===t.TrustingComponentAttr||e[0]===t.AttrSplat||e[0]===t.Modifier}function l(t){return"string"==typeof t}function s(t){return t}function c(e){return e[0]===t.StaticArg||e[0]===t.DynamicArg}function m(e){return Array.isArray(e)&&e[0]===t.Call}const p=o(t.GetSymbol);export{t as SexpOpcodes,e as VariableResolutionContext,n as WellKnownAttrNames,r as WellKnownTagNames,s as getStringFromValue,o as is,c as isArgument,a as isAttribute,i as isFlushElement,p as isGet,m as isHelper,l as isStringLiteral};
//# sourceMappingURL=index.js.map