Documentation ¶
Index ¶
- Constants
- Variables
- func AddReportComment(env Env, report string) error
- func AladinoErrorMessage(state, lookAhead int) string
- func AladinoParse(Aladinolex AladinoLexer) int
- func AladinoStatname(s int) string
- func AladinoTokname(c int) string
- func Aladinolex1(lex AladinoLexer, lval *AladinoSymType) (char, token int)
- func BuildDryRunExecutionReport(program *engine.Program) string
- func BuildInternalLabelID(id string) string
- func BuildInternalRuleName(name string) string
- func BuildInternalTemporaryVariableName(name string) string
- func BuildVerboseReport(report *Report) string
- func DeleteReportComment(env Env, commentId int64) error
- func EqualList(left []Expr, right []Expr) bool
- func Eval(env Env, expr Expr) (lang.Value, error)
- func EvalCondition(env Env, expr Expr) (bool, error)
- func EvalExpr(env Env, kind, expr string) (bool, error)
- func FindReportCommentByAnnotation(env Env, annotation string) (*github.IssueComment, error)
- func GetDefaultCodeHostClient(t *testing.T, pullRequest *pbc.PullRequest, pullRequestErr error) *codehost.CodeHostClient
- func GetDefaultMockIssueDetails() *github.Issue
- func GetDefaultMockPullRequestDetailsWith(pullRequest *pbc.PullRequest) *pbc.PullRequest
- func GetDefaultPullRequestDetails() *pbc.PullRequest
- func GetDefaultPullRequestFileList() []*github.CommitFile
- func MockDefaultGithubAppClient(ghApiClientOptions []mock.MockBackendOption) *gh.GithubAppClient
- func MockDefaultGithubClient(ghApiClientOptions []mock.MockBackendOption, ...) *gh.GithubClient
- func MockDefaultGithubClientWithFiles(ghApiClientOptions []mock.MockBackendOption, ...) *gh.GithubClient
- func NewInterpreter(ctx context.Context, logger *logrus.Entry, dryRun bool, ...) (engine.Interpreter, error)
- func TypeInference(e Env, expr Expr) (lang.Type, error)
- func UpdateReportComment(env Env, commentId int64, report string) error
- type AladinoLex
- type AladinoLexer
- type AladinoParser
- type AladinoParserImpl
- type AladinoSymType
- type AndOp
- type Array
- type BaseEnv
- func (e *BaseEnv) GetBuiltIns() *BuiltIns
- func (e *BaseEnv) GetBuiltInsReportedMessages() map[Severity][]string
- func (e *BaseEnv) GetCheckRunConclusion() string
- func (e *BaseEnv) GetCheckRunID() *int64
- func (e *BaseEnv) GetCodeHostClient() *codehost.CodeHostClient
- func (e *BaseEnv) GetCollector() collector.Collector
- func (e *BaseEnv) GetCtx() context.Context
- func (e *BaseEnv) GetDryRun() bool
- func (e *BaseEnv) GetEventPayload() interface{}
- func (e *BaseEnv) GetExecFatalErrorOccurred() error
- func (e *BaseEnv) GetExecWaitGroup() *sync.WaitGroup
- func (e *BaseEnv) GetGithubClient() *gh.GithubClient
- func (e *BaseEnv) GetLogger() *logrus.Entry
- func (e *BaseEnv) GetRegisterMap() RegisterMap
- func (e *BaseEnv) GetReport() *Report
- func (e *BaseEnv) GetTarget() codehost.Target
- func (e *BaseEnv) SetCheckRunConclusion(conclusion string)
- func (e *BaseEnv) SetExecFatalErrorOccurred(err error)
- type BinaryOp
- func BuildAndOp(lhs Expr, rhs Expr) *BinaryOp
- func BuildBinaryOp(lhs Expr, op BinaryOperator, rhs Expr) *BinaryOp
- func BuildEqOp(lhs Expr, rhs Expr) *BinaryOp
- func BuildGreaterEqThanOp(lhs Expr, rhs Expr) *BinaryOp
- func BuildGreaterThanOp(lhs Expr, rhs Expr) *BinaryOp
- func BuildLessEqThanOp(lhs Expr, rhs Expr) *BinaryOp
- func BuildLessThanOp(lhs Expr, rhs Expr) *BinaryOp
- func BuildNeqOp(lhs Expr, rhs Expr) *BinaryOp
- func BuildOrOp(lhs Expr, rhs Expr) *BinaryOp
- type BinaryOperator
- type BoolConst
- type BuiltInAction
- type BuiltInFunction
- type BuiltIns
- type Env
- func MockDefaultEnv(t *testing.T, ghApiClientOptions []mock.MockBackendOption, ...) Env
- func MockDefaultEnvWithPullRequestAndFiles(t *testing.T, ghApiClientOptions []mock.MockBackendOption, ...) Env
- func MockDefaultEnvWithTargetEntity(t *testing.T, ghApiClientOptions []mock.MockBackendOption, ...) Env
- func NewEvalEnv(ctx context.Context, logger *logrus.Entry, dryRun bool, ...) (Env, error)
- type EqOp
- type ExecExpr
- type Expr
- type FunctionCall
- type GreaterEqThanOp
- type GreaterThanOp
- type IntConst
- type Interpreter
- func (i *Interpreter) EvalExpr(kind, expr string) (bool, error)
- func (i *Interpreter) ExecProgram(program *engine.Program) (engine.ExitStatus, error)
- func (i *Interpreter) ExecStatement(statement *engine.Statement) error
- func (i *Interpreter) GetCheckRunConclusion() string
- func (i *Interpreter) ProcessDictionary(name string, dictionary map[string]string) error
- func (i *Interpreter) ProcessGroup(groupName string, kind engine.GroupKind, typeOf engine.GroupType, ...) error
- func (i *Interpreter) ProcessIterable(expr string) (lang.Value, error)
- func (i *Interpreter) ProcessLabel(id, name string) error
- func (i *Interpreter) ProcessRule(name, spec string) error
- func (i *Interpreter) Report(mode string, safeMode bool) error
- func (i *Interpreter) ReportMetrics() error
- func (i *Interpreter) StoreTemporaryVariable(name string, value lang.Value)
- type Lambda
- type LessEqThanOp
- type LessThanOp
- type NeqOp
- type NotOp
- type OrOp
- type RegisterMap
- type Report
- type Severity
- type StringConst
- type TypeEnv
- type TypedExpr
- type UnaryOp
- type UnaryOperator
- type UnsupportedKindError
- type Variable
Constants ¶
View Source
const ( BOOL_CONST string = "BoolConst" INT_CONST string = "IntConst" STRING_CONST string = "StringConst" TIME_CONST string = "TimeConst" VARIABLE_CONST string = "Variable" UNARY_OP_CONST string = "UnaryOp" BINARY_OP_CONST string = "BinaryOp" FUNCTION_CALL_CONST string = "FunctionCall" LAMBDA_CONST string = "Lambda" TYPED_EXPR string = "TypedExpr" ARRAY_CONST string = "Array" NOT_OP string = "!" EQ_OP string = "==" NEQ_OP string = "!=" AND_OP string = "&&" OR_OP string = "||" LESS_THAN_OP string = "<" LESS_EQ_THAN_OP string = "<=" GREATER_THAN_OP string = ">" GREATER_EQ_THAN_OP string = ">=" )
View Source
const AladinoEofCode = 1
View Source
const AladinoErrCode = 2
View Source
const AladinoFlag = -1000
View Source
const AladinoInitialStackSize = 16
View Source
const AladinoLast = 106
View Source
const AladinoPrivate = 57344
View Source
const DefaultMockEntityNodeID = "test"
View Source
const DefaultMockEventAction = "opened"
View Source
const DefaultMockEventName = "pull_request"
View Source
const DefaultMockPrID = 1234
View Source
const DefaultMockPrNum = 6
View Source
const DefaultMockPrOwner = "foobar"
View Source
const DefaultMockPrRepoName = "default-mock-repo"
View Source
const EOF = 0
View Source
const FALSE = 57362
View Source
const IDENTIFIER = 57348
View Source
const NUMBER = 57360
View Source
const RELATIVETIMESTAMP = 57347
View Source
const ReviewpadMetricReportCommentAnnotation = "<!--@annotation-reviewpad-metric-report-->"
View Source
const ReviewpadReportCommentAnnotation = "<!--@annotation-reviewpad-report-->"
View Source
const STRINGLITERAL = 57349
View Source
const TIMESTAMP = 57346
View Source
const TK_AND = 57364
View Source
const TK_BOOL_ARRAY_TYPE = 57358
View Source
const TK_BOOL_TYPE = 57355
View Source
const TK_CMPOP = 57350
View Source
const TK_EQ = 57365
View Source
const TK_FUNCTION_TYPE = 57359
View Source
const TK_INT_ARRAY_TYPE = 57357
View Source
const TK_INT_TYPE = 57354
View Source
const TK_LAMBDA = 57351
View Source
const TK_NEQ = 57366
View Source
const TK_NOT = 57367
View Source
const TK_OR = 57363
View Source
const TK_STRING_ARRAY_TYPE = 57356
View Source
const TK_STRING_TYPE = 57353
View Source
const TK_TYPE = 57352
View Source
const TRUE = 57361
Variables ¶
View Source
var ( AladinoDebug = 0 AladinoErrorVerbose = false )
View Source
var AladinoAct = [...]int{}/* 106 elements not displayed */
View Source
var AladinoChk = [...]int{
-1000, -6, -1, 25, 26, 4, 5, 18, 7, 28,
30, 19, 20, 22, 21, 23, 24, 8, -1, -1,
-3, -2, -1, 6, -1, -1, -1, -1, -1, 27,
32, 9, 29, 31, 26, -4, 11, 12, 13, 28,
17, -1, -2, -2, 31, 29, 26, 27, 27, -3,
-1, -4, -5, -4, 27, 31, -4, -5,
}
View Source
var AladinoDef = [...]int{
0, -2, 1, 0, 28, 9, 10, 11, 12, 31,
0, 15, 16, 0, 0, 0, 0, 0, 2, 0,
0, 0, 30, 14, 3, 4, 5, 6, 7, 8,
0, 0, 13, 31, 31, 27, 19, 20, 21, 0,
0, 0, 29, 0, 28, 0, 0, 18, 17, 26,
0, 22, 0, 25, 0, 0, 23, 24,
}
View Source
var AladinoErrorMessages = [...]struct { state int token int msg string }{}
View Source
var AladinoExca = [...]int{
-1, 1,
1, -1,
-2, 0,
}
View Source
var AladinoPact = [...]int{
7, -1000, 75, 7, 7, -1000, -1000, -1000, -1000, 7,
22, -1000, -1000, 7, 7, 7, 7, 7, -1000, 21,
15, -16, 46, -3, 28, 81, -1000, -1000, -1000, -1000,
67, 7, -1000, 7, 7, -22, -1000, -1000, -1000, -19,
-4, 64, -1000, -6, 7, 67, 67, -1000, -1000, -1000,
42, -1000, -12, -23, 67, 67, -1000, -1000,
}
View Source
var AladinoPgo = [...]int{
0, 2, 5, 4, 0, 1, 30,
}
View Source
var AladinoR1 = [...]int{
0, 6, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
4, 4, 4, 4, 5, 5, 3, 3, 3, 2,
2, 2,
}
View Source
var AladinoR2 = [...]int{
0, 1, 2, 3, 3, 3, 3, 3, 3, 1,
1, 1, 1, 3, 2, 1, 1, 5, 5, 1,
1, 1, 3, 5, 3, 1, 5, 3, 0, 3,
1, 0,
}
View Source
var AladinoStatenames = [...]string{}
View Source
var AladinoTok1 = [...]int{
1, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 30, 3, 3, 3,
26, 27, 3, 3, 31, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 32, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 28, 3, 29,
}
View Source
var AladinoTok2 = [...]int{
2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25,
}
View Source
var AladinoTok3 = [...]int{
0,
}
View Source
var AladinoToknames = [...]string{
"$end",
"error",
"$unk",
"TIMESTAMP",
"RELATIVETIMESTAMP",
"IDENTIFIER",
"STRINGLITERAL",
"TK_CMPOP",
"TK_LAMBDA",
"TK_TYPE",
"TK_STRING_TYPE",
"TK_INT_TYPE",
"TK_BOOL_TYPE",
"TK_STRING_ARRAY_TYPE",
"TK_INT_ARRAY_TYPE",
"TK_BOOL_ARRAY_TYPE",
"TK_FUNCTION_TYPE",
"NUMBER",
"TRUE",
"FALSE",
"TK_OR",
"TK_AND",
"TK_EQ",
"TK_NEQ",
"TK_NOT",
"'('",
"')'",
"'['",
"']'",
"'$'",
"','",
"':'",
}
View Source
var DefaultMockCollector, _ = collector.NewCollector("", "distinctId", "pull_request", "runnerName", nil)
View Source
var DefaultMockContext = context.Background()
View Source
var DefaultMockEventDetails = &entities.EventDetails{ EventName: DefaultMockEventName, EventAction: DefaultMockEventAction, }
View Source
var DefaultMockLogger = logrus.NewEntry(logrus.New()).WithField("prefix", "[aladino]")
View Source
var DefaultMockPrDate = time.Date(2009, 11, 17, 20, 34, 58, 651387237, time.UTC)
View Source
var DefaultMockTargetEntity = &entities.TargetEntity{ Owner: DefaultMockPrOwner, Repo: DefaultMockPrRepoName, Number: DefaultMockPrNum, Kind: entities.PullRequest, }
Functions ¶
func AddReportComment ¶
func AladinoErrorMessage ¶
func AladinoParse ¶
func AladinoParse(Aladinolex AladinoLexer) int
func AladinoStatname ¶
func AladinoTokname ¶
func Aladinolex1 ¶
func Aladinolex1(lex AladinoLexer, lval *AladinoSymType) (char, token int)
func BuildInternalLabelID ¶
func BuildInternalRuleName ¶
func BuildInternalTemporaryVariableName ¶ added in v4.12.0
func BuildVerboseReport ¶
func DeleteReportComment ¶
func EvalCondition ¶
EvalCondition evaluates a boolean expression Pre-condition: the type of expr is BoolType
func FindReportCommentByAnnotation ¶
func FindReportCommentByAnnotation(env Env, annotation string) (*github.IssueComment, error)
func GetDefaultCodeHostClient ¶ added in v4.4.0
func GetDefaultCodeHostClient(t *testing.T, pullRequest *pbc.PullRequest, pullRequestErr error) *codehost.CodeHostClient
func GetDefaultMockPullRequestDetailsWith ¶
func GetDefaultMockPullRequestDetailsWith(pullRequest *pbc.PullRequest) *pbc.PullRequest
func GetDefaultPullRequestDetails ¶ added in v4.4.0
func GetDefaultPullRequestDetails() *pbc.PullRequest
func GetDefaultPullRequestFileList ¶ added in v4.4.0
func GetDefaultPullRequestFileList() []*github.CommitFile
func MockDefaultGithubAppClient ¶
func MockDefaultGithubAppClient(ghApiClientOptions []mock.MockBackendOption) *gh.GithubAppClient
func MockDefaultGithubClient ¶
func MockDefaultGithubClient(ghApiClientOptions []mock.MockBackendOption, ghGraphQLHandler func(http.ResponseWriter, *http.Request)) *gh.GithubClient
func MockDefaultGithubClientWithFiles ¶ added in v4.20.0
func MockDefaultGithubClientWithFiles(ghApiClientOptions []mock.MockBackendOption, ghGraphQLHandler func(http.ResponseWriter, *http.Request), files []*github.CommitFile) *gh.GithubClient
func NewInterpreter ¶
func NewInterpreter( ctx context.Context, logger *logrus.Entry, dryRun bool, githubClient *gh.GithubClient, codeHostClient *codehost.CodeHostClient, collector collector.Collector, targetEntity *entities.TargetEntity, eventPayload interface{}, builtIns *BuiltIns, checkRunID *int64, ) (engine.Interpreter, error)
Types ¶
type AladinoLex ¶
type AladinoLex struct {
// contains filtered or unexported fields
}
func (*AladinoLex) Error ¶
func (l *AladinoLex) Error(s string)
func (*AladinoLex) Lex ¶
func (l *AladinoLex) Lex(lval *AladinoSymType) int
type AladinoLexer ¶
type AladinoLexer interface { Lex(lval *AladinoSymType) int Error(s string) }
type AladinoParser ¶
type AladinoParser interface { Parse(AladinoLexer) int Lookahead() int }
func AladinoNewParser ¶
func AladinoNewParser() AladinoParser
type AladinoParserImpl ¶
type AladinoParserImpl struct {
// contains filtered or unexported fields
}
func (*AladinoParserImpl) Lookahead ¶
func (p *AladinoParserImpl) Lookahead() int
func (*AladinoParserImpl) Parse ¶
func (Aladinorcvr *AladinoParserImpl) Parse(Aladinolex AladinoLexer) int
type AladinoSymType ¶
type AladinoSymType struct {
// contains filtered or unexported fields
}
type BaseEnv ¶
type BaseEnv struct { BuiltIns *BuiltIns BuiltInsReportedMessages map[Severity][]string GithubClient *gh.GithubClient CodeHostClient *codehost.CodeHostClient Collector collector.Collector Ctx context.Context DryRun bool EventPayload interface{} RegisterMap RegisterMap Report *Report Target codehost.Target Logger *logrus.Entry ExecWaitGroup *sync.WaitGroup ExecMutex *sync.Mutex ExecFatalErrorOccurred error CheckRunID *int64 CheckRunConclusion string }
func (*BaseEnv) GetBuiltIns ¶
func (*BaseEnv) GetBuiltInsReportedMessages ¶
func (*BaseEnv) GetCheckRunConclusion ¶ added in v4.10.0
func (*BaseEnv) GetCheckRunID ¶ added in v4.10.0
func (*BaseEnv) GetCodeHostClient ¶ added in v4.4.0
func (e *BaseEnv) GetCodeHostClient() *codehost.CodeHostClient
func (*BaseEnv) GetCollector ¶
func (*BaseEnv) GetEventPayload ¶
func (e *BaseEnv) GetEventPayload() interface{}
func (*BaseEnv) GetExecFatalErrorOccurred ¶ added in v4.9.0
func (*BaseEnv) GetExecWaitGroup ¶ added in v4.9.0
func (*BaseEnv) GetGithubClient ¶
func (e *BaseEnv) GetGithubClient() *gh.GithubClient
func (*BaseEnv) GetRegisterMap ¶
func (e *BaseEnv) GetRegisterMap() RegisterMap
func (*BaseEnv) SetCheckRunConclusion ¶ added in v4.10.0
func (*BaseEnv) SetExecFatalErrorOccurred ¶ added in v4.9.0
type BinaryOp ¶
type BinaryOp struct {
// contains filtered or unexported fields
}
func BuildAndOp ¶
func BuildBinaryOp ¶
func BuildBinaryOp(lhs Expr, op BinaryOperator, rhs Expr) *BinaryOp
func BuildGreaterEqThanOp ¶
func BuildGreaterThanOp ¶
func BuildLessEqThanOp ¶
func BuildLessThanOp ¶
func BuildNeqOp ¶
type BinaryOperator ¶
type BoolConst ¶
type BoolConst struct {
// contains filtered or unexported fields
}
func BuildBoolConst ¶
type BuiltInAction ¶
type BuiltInFunction ¶
type BuiltIns ¶
type BuiltIns struct { Functions map[string]*BuiltInFunction Actions map[string]*BuiltInAction Services map[string]interface{} }
func MergeAladinoBuiltIns ¶
func MockBuiltIns ¶
func MockBuiltIns() *BuiltIns
type Env ¶
type Env interface { GetBuiltIns() *BuiltIns GetBuiltInsReportedMessages() map[Severity][]string GetGithubClient() *gh.GithubClient GetCodeHostClient() *codehost.CodeHostClient GetCollector() collector.Collector GetCtx() context.Context GetDryRun() bool GetEventPayload() interface{} GetRegisterMap() RegisterMap GetReport() *Report GetTarget() codehost.Target GetLogger() *logrus.Entry GetExecWaitGroup() *sync.WaitGroup GetExecFatalErrorOccurred() error SetExecFatalErrorOccurred(error) GetCheckRunID() *int64 SetCheckRunConclusion(string) GetCheckRunConclusion() string }
func MockDefaultEnv ¶
func MockDefaultEnv( t *testing.T, ghApiClientOptions []mock.MockBackendOption, ghGraphQLHandler func(http.ResponseWriter, *http.Request), builtIns *BuiltIns, eventPayload interface{}, ) Env
MockDefaultEnv mocks an Aladino Env with default values.
func MockDefaultEnvWithPullRequestAndFiles ¶ added in v4.4.0
func MockDefaultEnvWithPullRequestAndFiles( t *testing.T, ghApiClientOptions []mock.MockBackendOption, ghGraphQLHandler func(http.ResponseWriter, *http.Request), pullRequest *pbc.PullRequest, files []*github.CommitFile, builtIns *BuiltIns, eventPayload interface{}, ) Env
func MockDefaultEnvWithTargetEntity ¶
func MockDefaultEnvWithTargetEntity( t *testing.T, ghApiClientOptions []mock.MockBackendOption, ghGraphQLHandler func(http.ResponseWriter, *http.Request), builtIns *BuiltIns, eventPayload interface{}, targetEntity *entities.TargetEntity, ) Env
MockDefaultEnvWithTargetEntity mocks an Aladino Env with default values and a custom TargetEntity.
func NewEvalEnv ¶
type Expr ¶
type FunctionCall ¶
type FunctionCall struct {
// contains filtered or unexported fields
}
func BuildFunctionCall ¶
func BuildFunctionCall(name *Variable, arguments []Expr) *FunctionCall
func (*FunctionCall) Kind ¶
func (fc *FunctionCall) Kind() string
type GreaterEqThanOp ¶
type GreaterEqThanOp struct{}
type GreaterThanOp ¶
type GreaterThanOp struct{}
type IntConst ¶
type IntConst struct {
// contains filtered or unexported fields
}
func BuildIntConst ¶
func BuildRelativeTimeConst ¶
func BuildTimeConst ¶
type Interpreter ¶
type Interpreter struct {
Env Env
}
func (*Interpreter) ExecProgram ¶
func (i *Interpreter) ExecProgram(program *engine.Program) (engine.ExitStatus, error)
func (*Interpreter) ExecStatement ¶
func (i *Interpreter) ExecStatement(statement *engine.Statement) error
func (*Interpreter) GetCheckRunConclusion ¶ added in v4.10.0
func (i *Interpreter) GetCheckRunConclusion() string
func (*Interpreter) ProcessDictionary ¶ added in v4.14.0
func (i *Interpreter) ProcessDictionary(name string, dictionary map[string]string) error
func (*Interpreter) ProcessGroup ¶
func (*Interpreter) ProcessIterable ¶ added in v4.14.0
func (i *Interpreter) ProcessIterable(expr string) (lang.Value, error)
func (*Interpreter) ProcessLabel ¶
func (i *Interpreter) ProcessLabel(id, name string) error
func (*Interpreter) ProcessRule ¶
func (i *Interpreter) ProcessRule(name, spec string) error
func (*Interpreter) ReportMetrics ¶
func (i *Interpreter) ReportMetrics() error
func (*Interpreter) StoreTemporaryVariable ¶ added in v4.12.0
func (i *Interpreter) StoreTemporaryVariable(name string, value lang.Value)
type LessEqThanOp ¶
type LessEqThanOp struct{}
type LessThanOp ¶
type LessThanOp struct{}
type RegisterMap ¶
type StringConst ¶
type StringConst struct {
// contains filtered or unexported fields
}
func BuildStringConst ¶
func BuildStringConst(val string) *StringConst
func (*StringConst) Kind ¶
func (c *StringConst) Kind() string
type UnaryOp ¶
type UnaryOp struct {
// contains filtered or unexported fields
}
func BuildNotOp ¶
func BuildUnaryOp ¶
func BuildUnaryOp(op UnaryOperator, expr Expr) *UnaryOp
type UnaryOperator ¶
type UnsupportedKindError ¶ added in v4.15.0
type UnsupportedKindError struct { Kind entities.TargetEntityKind SupportedKinds []entities.TargetEntityKind BuiltIn string }
func (*UnsupportedKindError) Error ¶ added in v4.15.0
func (e *UnsupportedKindError) Error() string
func (*UnsupportedKindError) SupportedOn ¶ added in v4.15.0
func (e *UnsupportedKindError) SupportedOn() string
Click to show internal directories.
Click to hide internal directories.