github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/compile/types.go (about)

     1  /*
     2  * Copyright (c) 2024-present unTill Pro, Ltd.
     3  * @author Alisher Nurmanov
     4   */
     5  
     6  package compile
     7  
     8  import (
     9  	"golang.org/x/tools/go/packages"
    10  
    11  	"github.com/voedger/voedger/pkg/appdef"
    12  )
    13  
    14  // Result is a result of compilation
    15  type Result struct {
    16  	ModulePath   string              // module path of compiled module
    17  	PkgFiles     map[string][]string // map of package path to list of file paths belonging to the package
    18  	AppDef       appdef.IAppDef
    19  	NotFoundDeps []string // list of not found dependencies faced during compilation
    20  }
    21  
    22  type loadedPackages struct {
    23  	name         string
    24  	packagePath  string
    25  	modulePath   string
    26  	rootPkgs     []*packages.Package
    27  	importedPkgs map[string]*packages.Package // map of imported package path to *packages.Package
    28  }