ConstVariableGlobalEvaluator an interface used to evaluate enums across packages
| 31 | |
| 32 | // ConstVariableGlobalEvaluator an interface used to evaluate enums across packages |
| 33 | type ConstVariableGlobalEvaluator interface { |
| 34 | EvaluateConstValue(pkg *PackageDefinitions, cv *ConstVariable, recursiveStack map[string]struct{}) (interface{}, ast.Expr) |
| 35 | EvaluateConstValueByName(file *ast.File, pkgPath, constVariableName string, recursiveStack map[string]struct{}) (interface{}, ast.Expr) |
| 36 | FindTypeSpec(typeName string, file *ast.File) *TypeSpecDef |
| 37 | } |
| 38 | |
| 39 | // NewPackageDefinitions new a PackageDefinitions object |
| 40 | func NewPackageDefinitions(name, pkgPath string) *PackageDefinitions { |
no outgoing calls
no test coverage detected
searching dependent graphs…