Interface
interface ToBytes
public interface ToBytes {
func toBytes(): Array<UInt8>
}
Description: Provides the serialization function of the corresponding type.
func toBytes()
func toBytes(): Array<UInt8>
Description: Provides the serialization function of the corresponding type.
Returns:
extend Position <: ToBytes
extend Position <: ToBytes
Description: Provides the serialization function of the Position type.
Parent Type:
func toBytes()
public func toBytes(): Array<UInt8>
Description: Provides the serialization function of the Position type.
Returns:
extend Token <: ToBytes
extend Token <: ToBytes
Description: Provides the serialization function of the Token type.
Parent Type:
func toBytes()
public func toBytes(): Array<UInt8>
Description: Provides the serialization function of the Token type.
Returns:
extend Tokens <: ToBytes
extend Tokens <: ToBytes
Description: Provides the serialization function of the Tokens type.
Parent Type:
func toBytes()
public func toBytes(): Array<UInt8>
Description: Provides the serialization function of the Tokens type.
Returns:
interface ToTokens
public interface ToTokens {
func toTokens(): Tokens
}
Description: Converts an instance of the corresponding type to an instance of the Tokens type. To support the quote
interpolation operation, this API must be implemented.
func toTokens()
func toTokens(): Tokens
Description: Converts an instance of the corresponding type to an instance of the Tokens type.
Returns:
extend Array <: ToTokens
extend<T> Array<T> <: ToTokens
Description: Converts an instance of the Array type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Array type to an instance of the Tokens type. Only the numeric, Rune, Bool, and String types are supported.
Returns:
extend ArrayList <: ToTokens
extend<T> ArrayList<T> <: ToTokens
Description: Converts an instance of the ArrayList type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the ArrayList type to an instance of the Tokens type. Currently, the Decl, Node, Constructor, Argument, FuncParam, MatchCase, Modifier, Annotation, ImportList, Pattern, and TypeNode types are supported.
Returns:
extend Bool <: ToTokens
extend Bool <: ToTokens
Description: Converts an instance of the Bool type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Bool type to an instance of the Tokens type.
Returns:
extend Float16 <: ToTokens
extend Float16 <: ToTokens
Description: Converts an instance of the Float16 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Float16 type to an instance of the Tokens type.
Returns:
extend Float32 <: ToTokens
extend Float32 <: ToTokens
Description: Converts an instance of the Float32 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Float32 type to an instance of the Tokens type.
Returns:
extend Float64 <: ToTokens
extend Float64 <: ToTokens
Description: Converts an instance of the Float64 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Float64 type to an instance of the Tokens type.
Returns:
extend Int16 <: ToTokens
extend Int16 <: ToTokens
Description: Converts an instance of the Int16 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Int16 type to an instance of the Tokens type.
Returns:
extend Int32 <: ToTokens
extend Int32 <: ToTokens
Description: Converts an instance of the Int32 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Int32 type to an instance of the Tokens type.
Returns:
extend Int64 <: ToTokens
extend Int64 <: ToTokens
Description: Converts an instance of the Int64 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Int64 type to an instance of the Tokens type.
Returns:
extend Int8 <: ToTokens
extend Int8 <: ToTokens
Description: Converts an instance of the Int8 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Int8 type to an instance of the Tokens type.
Returns:
extend Rune <: ToTokens
extend Rune <: ToTokens
Description: Converts an instance of the Rune type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Rune type to an instance of the Tokens type.
Returns:
extend String <: ToTokens
extend String <: ToTokens
Description: Converts an instance of the String type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the String type to an instance of the Tokens type.
Returns:
extend Token <: ToTokens
extend Token <: ToTokens
Description: Converts an instance of the Token type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Token type to an instance of the Tokens type.
Returns:
extend Tokens <: ToTokens
extend Tokens <: ToTokens
Description: Converts an instance of the Tokens type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the Tokens type to an instance of the Tokens type.
Returns:
extend UInt16 <: ToTokens
extend UInt16 <: ToTokens
Description: Converts an instance of the UInt16 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the UInt16 type to an instance of the Tokens type.
Returns:
extend UInt32 <: ToTokens
extend UInt32 <: ToTokens
Description: Converts an instance of the UInt32 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the UInt32 type to an instance of the Tokens type.
Returns:
extend UInt64 <: ToTokens
extend UInt64 <: ToTokens
Description: Converts an instance of the UInt64 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the UInt64 type to an instance of the Tokens type.
Returns:
extend UInt8 <: ToTokens
extend UInt8 <: ToTokens
Description: Converts an instance of the UInt8 type to an instance of the Tokens type.
Parent Type:
func toTokens()
public func toTokens(): Tokens
Description: Converts an instance of the UInt8 type to an instance of the Tokens type.
Returns: