Documentation ¶
Index ¶
- Constants
- Variables
- func Comments(group *Group, comments ...string) *Group
- func ComposeTypeAssertion(file *File, group *Group, varName string, typ types.Type, isVariadic bool, ...)
- func DoGroup(f func(*Group)) *Statement
- func GetFuncQualifierCodeElements(qual *x.FuncQualifier) (x.FuncInterface, []Code)
- func NewTestFile(includeBoilerplace bool) *File
- func Tag() Code
- type Handler
- type StatementAndName
Constants ¶
View Source
const ( // NOTE: hardcoded inside TestQueryContent const. InlineExpectationsTestTag = "$taintSink" // Must start with a $ sign. )
View Source
const (
Kind x.ModelKind = "TaintTracking"
)
View Source
const (
MethodSelf = "Self"
)
View Source
const (
TestQueryContent = `` /* 1192-byte string literal not displayed */
)
Variables ¶
View Source
var (
GenerateBoilerplate bool
)
View Source
var (
IncludeCommentsInGeneratedGo bool
)
Functions ¶
func Comments ¶
func Comments(group *Group, comments ...string) *Group
Comments adds comments to a Group (if enabled), and returns the group.
func ComposeTypeAssertion ¶
func ComposeTypeAssertion(file *File, group *Group, varName string, typ types.Type, isVariadic bool, counter int)
declare `name := source(1).(Type)`
func GetFuncQualifierCodeElements ¶
func GetFuncQualifierCodeElements(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 ¶
type StatementAndName ¶
type StatementAndName struct { Statement *Statement TestFuncName string }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Click to show internal directories.
Click to hide internal directories.