Skip to main content

ToIRContextI

export interface ToIRContextI {
  aliasNamespace: undefined | string
  appendAliasNamespace(alias: string): ToIRContextI
  db: Map<string, RawFuncI>
  fetchRawFunctions(
    ir: SourceMappedStringI,
    userDefs?: Definitions
  ): Definitions
  fetchRawGenerics(): Map<string, (
    ttp: string[],
    ftp: string[]
  ) => SourceMappedStringI>
  indent: string
  isTestnet: boolean
  optimize: boolean
  paramsSubsitutable: boolean
  props: ToIRContextProps
  tab(): ToIRContextI
  withAliasNamespace(alias: string): ToIRContextI
  wrapWithRawFunctions(ir: SourceMappedStringI): SourceMappedStringI
}

Properties

aliasNamespace

aliasNamespace: undefined | string

appendAliasNamespace

appendAliasNamespace(alias: string): ToIRContextI
Appends parent debugging information which should be passed into IR via site.alias

db

db: Map<string, RawFuncI>

fetchRawFunctions

fetchRawFunctions(
  ir: SourceMappedStringI,
  userDefs?: Definitions
): Definitions
Doesn't add templates

fetchRawGenerics

fetchRawGenerics(): Map<string, (
  ttp: string[],
  ftp: string[]
) => SourceMappedStringI>
Load all raw generics so all possible implementations can be generated correctly during type parameter injection phase

indent

indent: string

isTestnet

isTestnet: boolean

optimize

optimize: boolean

paramsSubsitutable

paramsSubsitutable: boolean

props

props: ToIRContextProps

tab

tab(): ToIRContextI

withAliasNamespace

withAliasNamespace(alias: string): ToIRContextI
Adds parent debugging information which should be passed into IR via site.alias

wrapWithRawFunctions

wrapWithRawFunctions(ir: SourceMappedStringI): SourceMappedStringI