model

package
v0.0.0-...-dbce553 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeCommit

type CodeCommit struct {
	FileId string
}

type CodeDataStruct

type CodeDataStruct struct {
	DataStructId string
	Name         string
	MemberIds    []string
}

type CodeFile

type CodeFile struct {
	FileId   string
	FullName string
}

type CodeFunction

type CodeFunction struct {
	MemberId          string
	Parameters        []CodeType
	ReturnTypes       []CodeType
	References        []MemberId
	CodeFunctionCalls []CodeFunctionCall
	Variables         map[string]string
	Expression        []Expression
	Position          CodePosition
}

define function

func CreateFunction

func CreateFunction(name string) CodeFunction

type CodeFunctionCall

type CodeFunctionCall struct {
	MemberId   string
	ReturnVars []CodeType
	Parameters []CodeParameter
}

func CreateFunctionCall

func CreateFunctionCall(functionName string, parameters []CodeParameter) CodeFunctionCall

type CodeMember

type CodeMember struct {
	MemberId     string
	Name         string
	DataStructId string
	FileId       string
	PackageName  string // namespace
}

type CodeModel

type CodeModel struct {
	FunctionCalls []CodeFunctionCall
	Functions     []CodeFunction
	Variables     map[string]string
}

type CodeParameter

type CodeParameter struct {
	Key   CodeType
	Value CodeParameterValue
}

type CodeParameterValue

type CodeParameterValue struct {
	Value string
}

type CodePosition

type CodePosition struct {
	StartLine       int
	StartLineColumn int
	StopLine        int
	StopLineColumn  int
}

type CodeType

type CodeType struct {
	Type string
}

type DefineInformation

type DefineInformation struct {
	DefineTemplates map[string]string
	SymbolsMap      map[string]string
	DefineModules   []DefineModule
}

type DefineModule

type DefineModule struct {
	ModuleName      string
	ModuleFunctions []ModuleFunction
}

type Expression

type Expression struct {
	Expressions    []Expression
	BlockStatement []string
	BlockCondition string
	Position       CodePosition
}

type MemberId

type MemberId struct {
	Id string
}

type ModuleFunction

type ModuleFunction struct {
	FunctionName string
	EqualName    string
	ImportName   string
}

Jump to

Keyboard shortcuts

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