Skip to content

SrcFile

[Source]

A Pony source file.

class val SrcFile is
  NodeData val

Implements


Constructors

create

[Source]

new val create(
  locator': String val,
  usings': Array[NodeWith[(UsingPony val | UsingFFI val)] val] val,
  type_defs': Array[NodeWith[(TypedefPrimitive val | TypedefAlias val | TypedefClass val)] val] val)
: SrcFile val^

Parameters

Returns


Public fields

let locator: String val

[Source]


let usings: Array[NodeWith[(UsingPony val | UsingFFI val)] val] val

[Source]


let type_defs: Array[NodeWith[(TypedefPrimitive val | TypedefAlias val | TypedefClass val)] val] val

[Source]


Public Functions

name

[Source]

fun box name()
: String val

Returns


clone

[Source]

fun val clone(
  updates: HashMap[Node val, Node val, HashIs[Node val] val] val)
: NodeData val

Parameters

Returns


add_json_props

[Source]

fun box add_json_props(
  node: Node box,
  props: Array[(String val , (Object box | Sequence box | String box | I128 val | F64 val | Bool val | Null val))] ref)
: None val

Parameters

Returns