mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
24 lines
828 B
Go
24 lines
828 B
Go
package model
|
|
|
|
// methodCall describes a call to c.Render(..)
|
|
// It documents the argument names used, in order to propagate them to RenderArgs.
|
|
type MethodCall struct {
|
|
Path string // e.g. "myapp/app/controllers.(*Application).Action"
|
|
Line int
|
|
Names []string
|
|
}
|
|
|
|
// MethodSpec holds the information of one Method.
|
|
type MethodSpec struct {
|
|
Name string // Name of the method, e.g. "Index"
|
|
Args []*MethodArg // Argument descriptors
|
|
RenderCalls []*MethodCall // Descriptions of Render() invocations from this Method.
|
|
}
|
|
|
|
// MethodArg holds the information of one argument.
|
|
type MethodArg struct {
|
|
Name string // Name of the argument.
|
|
TypeExpr TypeExpr // The name of the type, e.g. "int", "*pkg.UserType"
|
|
ImportPath string // If the arg is of an imported type, this is the import path.
|
|
}
|