Documentation ¶
Index ¶
- Constants
- Variables
- func Comments(group *Group, comments ...string) *Group
- func ComposeGroupVarDeclaration(file *File, group *Group, decs []*VarNameAndType)
- func GetFuncQualifierCodeElements(qual *x.FuncQualifier) (x.FuncInterface, []Code)
- func GoGetFuncQualifierCodeElements(file *File, qual *x.FuncQualifier) (x.FuncInterface, []Code)
- func NewTestFile(includeBoilerplace bool) *File
- func Tag() Code
- type Handler
- type VarNameAndType
Constants ¶
View Source
const ( // NOTE: hardcoded inside TestQueryContent const. InlineExpectationsTestTag = "$untrustedFlowSource" // Must start with a $ sign. )
View Source
const (
Kind x.ModelKind = "UntrustedFlowSource"
)
View Source
const (
MethodSelf = "{source:[](Param|Result|Fields|Type)} <- $source"
)
View Source
const (
TestQueryContent = `` /* 734-byte string literal not displayed */
)
Variables ¶
View Source
var ( IncludeCommentsInGeneratedGo bool GenerateBoilerplate bool )
Functions ¶
func Comments ¶
func Comments(group *Group, comments ...string) *Group
Comments adds comments to a Group (if enabled), and returns the group.
func ComposeGroupVarDeclaration ¶
func ComposeGroupVarDeclaration(file *File, group *Group, decs []*VarNameAndType)
declare: `var (
name1 Type1 name2 Type2 )`
func GetFuncQualifierCodeElements ¶
func GetFuncQualifierCodeElements(qual *x.FuncQualifier) (x.FuncInterface, []Code)
func GoGetFuncQualifierCodeElements ¶
func GoGetFuncQualifierCodeElements(file *File, qual *x.FuncQualifier) (x.FuncInterface, []Code)
func NewTestFile ¶
func NewTestFile(includeBoilerplace bool) *File
Types ¶
type Handler ¶
type Handler struct{}
func (*Handler) GenerateCodeQL ¶
func (*Handler) ScavengeMethods ¶
Click to show internal directories.
Click to hide internal directories.