swift

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EnumTemplate = `` /* 154-byte string literal not displayed */

Variables

This section is empty.

Functions

func CharacteristicEnumDecl

func CharacteristicEnumDecl(metadata gen.Metadata) ([]byte, error)

func ServiceEnumDecl

func ServiceEnumDecl(metadata gen.Metadata) ([]byte, error)

Types

type ByValue

type ByValue []ConstDecl

ByValue defines a type for sorting const declarations by value by Impelementing the sort.Interface interface

func (ByValue) Len

func (v ByValue) Len() int

func (ByValue) Less

func (v ByValue) Less(i, j int) bool

func (ByValue) Swap

func (v ByValue) Swap(i, j int)

type Case

type Case struct {
	Name    string
	Value   string
	Comment string
}

func (*Case) HasComment

func (c *Case) HasComment() bool

type ConstDecl

type ConstDecl struct {
	Identifier string
	Value      interface{}
}

ConstDecl is a constant declaration

type Enum

type Enum struct {
	Name  string
	Super string
	Cases []*Case
}

func (*Enum) HasSuper

func (e *Enum) HasSuper() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL