Skip to content

package program

import "github.com/cloudboss/unobin/pkg/program"

Types

type BuildProfile

type BuildProfile string

func ParseBuildProfile

func ParseBuildProfile(value string) (BuildProfile, error)

type CheckedBody

type CheckedBody struct {
    Imports    *Imports
    DAG        *runtime.DAG
    LocalTypes map[string]typecheck.Type
}

type Composite

type Composite struct {
    Category             string
    Export               string
    Body                 syntax.FactoryBody
    Imports              []resolve.Resolution
    Libraries            map[string]*runtime.Library
    LibraryConfigSchemas map[string]runtime.LibraryConfigSchema
    AssetSetID           string
}

type Imports

type Imports struct {
    Top                  []resolve.Resolution
    Libraries            map[string]*runtime.Library
    LibraryConfigSchemas map[string]runtime.LibraryConfigSchema
    GoModules            map[string]string
    UBLibraries          []Library
    Assets               *asset.Collection
    RootAssetSetID       string
    Compatibility        *golibrary.CompatibilityContext
    LibraryMetadata      []golibrary.PackageMetadata
}

type Library

type Library struct {
    Name         string
    CanonicalKey string
    Composites   []Composite
    Specs        map[string]LibrarySpec
    SourceFiles  map[string]syntax.SourceFileSpec
}

type LibrarySpec

type LibrarySpec struct {
    Constraints map[string][]lang.ConstraintSpec
    Defaults    map[string][]lang.DefaultSpec
    Schema      *runtime.LibrarySchema
}

func (LibrarySpec) Empty

func (s LibrarySpec) Empty() bool