MCPcopy Create free account
hub / github.com/CashScript/cashscript / getPragmaName

Function getPragmaName

packages/cashc/src/ast/Pragma.ts:17–19  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

15}
16
17export function getPragmaName(name: string): PragmaName {
18 return PragmaName[name.toUpperCase() as keyof typeof PragmaName];
19}
20
21export function getVersionOpFromCtx(ctx?: VersionOperatorContext): VersionOp {
22 return <VersionOp>(ctx ? ctx.getText() : '=');

Callers 1

processPragmaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected