edit.js

Summary
edit.js
Functions
idn/a
inferred_pn/a
signatureA cheap way of identifying if two types are the same.
categoryTry to put an instance type into some kind of rendering category.
typeThe “type” of the type.
svf_class_expressionThe class expression when we are dealing with SVF.
frameIf the type has a recursive frame, a list of the types it contains.
class_idThe considered class id.
class_labelThe considered class label, defaults to ID if not found.
property_idThe considered class property id.
property_labelThe considered class property label.
typesGet current types; replace current types.
add_typesAdd types to current types.
get_type_by_idGet the

Functions

id

bbopx.noctua.edit.type.prototype.id = function()

Parameters

n/a

Returns

string

inferred_p

bbopx.noctua.edit.type.prototype.inferred_p = function()

Parameters

n/a

Returns

boolean

signature

bbopx.noctua.edit.type.prototype.signature = function()

A cheap way of identifying if two types are the same.  This essentially returns a string of the main attributes of a type.  It is meant to be semi-unique and collide with dupe inferences.

Parameters

n/a

Returns

string

category

bbopx.noctua.edit.type.prototype.category = function()

Try to put an instance type into some kind of rendering category.

Parameters

n/a

Returns

string (default ‘unknown’)

type

bbopx.noctua.edit.type.prototype.type = function()

The “type” of the type.

Parameters

n/a

Returns

string or null

svf_class_expression

bbopx.noctua.edit.type.prototype.svf_class_expression = function()

The class expression when we are dealing with SVF.

Parameters

n/a

Returns

type or null

frame

bbopx.noctua.edit.type.prototype.frame = function()

If the type has a recursive frame, a list of the types it contains.

Parameters

n/a

Returns

list

class_id

bbopx.noctua.edit.type.prototype.class_id = function()

The considered class id.

Parameters

n/a

Returns

string or null

class_label

bbopx.noctua.edit.type.prototype.class_label = function()

The considered class label, defaults to ID if not found.

Parameters

n/a

Returns

string or null

property_id

bbopx.noctua.edit.type.prototype.property_id = function()

The considered class property id.  Not defined for ‘Class’ types.

Parameters

n/a

Returns

string or null

property_label

bbopx.noctua.edit.type.prototype.property_label = function()

The considered class property label.  Not defined for ‘Class’ types.

Parameters

n/a

Returns

string or null

types

bbopx.noctua.edit.node.prototype.types = function(in_types)

Get current types; replace current types.

Parameters

in_types[optional] raw JSON type objects

Returns

array

add_types

bbopx.noctua.edit.node.prototype.add_types = function(in_types,
inferred_p)

Add types to current types.

Parameters

in_typesraw JSON type objects
inferred_pwhether or not the argument types are inferred

Returns

boolean

get_type_by_id

bbopx.noctua.edit.node.prototype.get_type_by_id = function(type_id)

Get the

Parameters

type_idtype id

Returns

type or null

bbopx.noctua.edit.type.prototype.id = function()
n/a
bbopx.noctua.edit.type.prototype.inferred_p = function()
n/a
bbopx.noctua.edit.type.prototype.signature = function()
A cheap way of identifying if two types are the same.
bbopx.noctua.edit.type.prototype.category = function()
Try to put an instance type into some kind of rendering category.
bbopx.noctua.edit.type.prototype.type = function()
The “type” of the type.
bbopx.noctua.edit.type.prototype.svf_class_expression = function()
The class expression when we are dealing with SVF.
bbopx.noctua.edit.type.prototype.frame = function()
If the type has a recursive frame, a list of the types it contains.
bbopx.noctua.edit.type.prototype.class_id = function()
The considered class id.
bbopx.noctua.edit.type.prototype.class_label = function()
The considered class label, defaults to ID if not found.
bbopx.noctua.edit.type.prototype.property_id = function()
The considered class property id.
bbopx.noctua.edit.type.prototype.property_label = function()
The considered class property label.
bbopx.noctua.edit.node.prototype.types = function(in_types)
Get current types; replace current types.
bbopx.noctua.edit.node.prototype.add_types = function(in_types,
inferred_p)
Add types to current types.
bbopx.noctua.edit.node.prototype.get_type_by_id = function(type_id)
Get the
Close