Libraries.Language.Compile.Symbol.Action Documentation

Inherits from: Libraries.Language.Compile.Location, Libraries.Language.Object, Libraries.Language.Compile.Symbol.Symbol

Actions Documentation

AddActionCalls(Libraries.Language.Compile.Symbol.ActionCallResolution call)

This action receives any action calls that exist inside of this action.

Parameters

AddCallLocation(Libraries.Language.Compile.Location location)

AddParameter(Libraries.Language.Compile.Symbol.Variable parameter)

Compare(Libraries.Language.Object object)

Parameters

Return

integer

ConvertActionToBytecodeParameterInterfaceSignature()

Return

text

ConvertActionToBytecodeParameterSignature()

Return

text

ConvertActionToJavaScriptName()

add on a value corresponding to the parent of this action (e.g., integer, number)

Return

text:

ConvertActionToPythonName()

Return

text

ConvertPrimitiveActionToBytecodeParameterInterfaceSignature()

Return

text

CreateLocationCopy()

This action is a helper action to get copies of the location.

Return

Libraries.Language.Compile.Location:

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

Example

use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)

GetActionCalls()

This action receives any action calls that exist inside of this action.

Return

Libraries.Containers.Iterator:

GetAllLocalVariables()

GetBytecodeLocation()

Return

integer

GetCallLocationIterator(Libraries.System.File file)

GetCodeCompletionItem(Libraries.Language.Compile.Symbol.Variable variable)

GetColumnNumber()

Return

integer

GetColumnNumberEnd()

Return

integer

GetDisplayName()

Return

text

GetDisplayNameNoReturn()

Return

text

GetDisplayNameNoReturnAsWeb()

Return

text

GetFile()

GetHashCode()

This action gets the hash code for an object.

Return

integer: The integer hash code of the object.

Example

Object o
integer hash = o:GetHashCode()

GetHeaderLocation()

GetIndex()

Return

integer

GetIndexEnd()

Return

integer

GetLineNumber()

Return

integer

GetLineNumberEnd()

Return

integer

GetName()

Return

text

GetParameter(text key)

GetParameterIterator()

This Iterator returns the parameters in the action in the order in which they are declared.

Return

Libraries.Containers.Iterator:

GetParametersSize()

Return

integer

GetReturnLocation()

GetStaticKey()

Return

text

HasParameter(text key)

Parameters

  • text key

Return

boolean

IsBlueprint()

This Iterator returns the parameters in the action in the order in which they are declared.

Return

boolean:

IsMain()

This action returns true if this is a Main action and false otherwise. The rules for determinining this are that 1) it may not be a blueprint action, 2) it may not be a system action, 3) it must be named either main or Main.

Return

boolean: whether or not the action is a main action.

Example

use Libraries.Language.Compile.Symbol.Action

Action act
boolean test = act:IsMain() //would be false by default

IsPrivate()

Return

boolean

IsPublic()

Return

boolean

IsSystem()

Return

boolean

RemoveCallLocations(Libraries.System.File file)

SetBlock(Libraries.Language.Compile.Symbol.Block block)

SetColumnNumber(integer column)

Parameters

  • integer column

SetColumnNumberEnd(integer column)

Parameters

  • integer column

SetDocumentation(Libraries.Language.Compile.Symbol.Documentation documentation)

SetFile(Libraries.System.File file)

SetHeaderLocation(Libraries.Language.Compile.Location location)

SetIndex(integer index)

Parameters

  • integer index

SetIndexEnd(integer index)

Parameters

  • integer index

SetIsBluePrint(boolean isBlueprint)

This action returns true if this is a Main action and false otherwise. The rules for determinining this are that 1) it may not be a blueprint action, 2) it may not be a system action, 3) it must be named either main or Main.

Parameters

  • boolean isBlueprint

Example

use Libraries.Language.Compile.Symbol.Action

Action act
boolean test = act:IsMain() //would be false by default

SetIsSystem(boolean isSystem)

Parameters

  • boolean isSystem

SetLineNumber(integer line)

Parameters

  • integer line

SetLineNumberEnd(integer line)

Parameters

  • integer line

SetLocation(Libraries.Language.Compile.Location location)

This action uses the location and resets the current error's data.

Parameters

SetName(text name)

Parameters

  • text name

SetNameLocation(Libraries.Language.Compile.Location location)

SetParentClass(Libraries.Language.Compile.Symbol.Class clazz)

SetPrivate()

SetPublic()

SetReturnLocation(Libraries.Language.Compile.Location location)

SetReturnType(Libraries.Language.Compile.Symbol.Type type)

ToText()

This action is a helper action to get copies of the location.

Return

text: