MCPcopy
hub / github.com/swaggo/swag / ConstVariableGlobalEvaluator

Interface ConstVariableGlobalEvaluator

package.go:33–37  ·  view source on GitHub ↗

ConstVariableGlobalEvaluator an interface used to evaluate enums across packages

Source from the content-addressed store, hash-verified

31
32// ConstVariableGlobalEvaluator an interface used to evaluate enums across packages
33type 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
40func NewPackageDefinitions(name, pkgPath string) *PackageDefinitions {

Callers 5

evaluateConstValueMethod · 0.65
evaluateConstValueMethod · 0.65
evaluateConstValueMethod · 0.65
getTypeSchemaMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…