Styles

object Styles

Declarations related to style objects, for styling phrases.

Functions

Link copied to clipboard
fun createStyle(    semanticClassifier: A_String,     methodName: A_String,     sourceModuleOrNil: A_Module,     generated: Boolean,     lineNumber: Int): AvailObject

Create a style object from the given values.

Properties

Link copied to clipboard
val generatedAtom: AvailObject

The field of a style object for identifying whether this send is generated from a macro (true) or was parsed directly as a method send (false).

Link copied to clipboard
val lineNumberAtom: AvailObject

The line number in the sourceModuleAtom which acts as the target of this call site. If the call site is an ordinary send, this should be the most specific applicable method definition. If it was generated from a macro, it should lead to some function that was "most responsible" for its definition.

Link copied to clipboard
val methodNameAtom: AvailObject

The name of the method being invoked at this call site. This is used with the sourceModuleAtom to ensure modular naming.

Link copied to clipboard
val semanticClassifierAtom: AvailObject

The field of a style object for identifying a semantic style name with which to look up a concrete style for rendering a subexpression.

Link copied to clipboard
val sourceModuleAtom: AvailObject

The fully qualified module name that defined the atom named in the methodNameAtom field.

Link copied to clipboard
val stylerFunctionType: A_Type

The function type for styler functions.

Link copied to clipboard
val styleType: A_Type

The type for abstract code styles.

Link copied to clipboard
val subclassAtom: AvailObject

The A_Atom used to indicate that an object is a style. Style objects are normally stored separate from the serialized sequence of functions to invoke for fast-loading, and also separate from the parse phrases corresponding to those functions.