NodeType

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_NodeType_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Analyze

type Analyze struct {
	Complexity      *Complexity      `protobuf:"bytes,1,opt,name=complexity,proto3" json:"complexity,omitempty"`
	Volume          *Volume          `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"`
	Maintainability *Maintainability `protobuf:"bytes,3,opt,name=maintainability,proto3" json:"maintainability,omitempty"`
	Risk            *Risk            `protobuf:"bytes,4,opt,name=risk,proto3" json:"risk,omitempty"`
	Coupling        *Coupling        `protobuf:"bytes,5,opt,name=coupling,proto3" json:"coupling,omitempty"`
	// contains filtered or unexported fields
}

------------------------------------ -- Metrics ------------------------------------ Represents The storage of all the metrics

func (*Analyze) Descriptor deprecated

func (*Analyze) Descriptor() ([]byte, []int)

Deprecated: Use Analyze.ProtoReflect.Descriptor instead.

func (*Analyze) GetComplexity

func (x *Analyze) GetComplexity() *Complexity

func (*Analyze) GetCoupling

func (x *Analyze) GetCoupling() *Coupling

func (*Analyze) GetMaintainability

func (x *Analyze) GetMaintainability() *Maintainability

func (*Analyze) GetRisk

func (x *Analyze) GetRisk() *Risk

func (*Analyze) GetVolume

func (x *Analyze) GetVolume() *Volume

func (*Analyze) ProtoMessage

func (*Analyze) ProtoMessage()

func (*Analyze) ProtoReflect

func (x *Analyze) ProtoReflect() protoreflect.Message

func (*Analyze) Reset

func (x *Analyze) Reset()

func (*Analyze) String

func (x *Analyze) String() string

type Commit

type Commit struct {
	Hash   string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Date   int64  `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

func (*Commit) Descriptor deprecated

func (*Commit) Descriptor() ([]byte, []int)

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAuthor

func (x *Commit) GetAuthor() string

func (*Commit) GetDate

func (x *Commit) GetDate() int64

func (*Commit) GetHash

func (x *Commit) GetHash() string

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

func (x *Commit) ProtoReflect() protoreflect.Message

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type Commits

type Commits struct {
	Count          int32     `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	CountCommiters int32     `protobuf:"varint,2,opt,name=countCommiters,proto3" json:"countCommiters,omitempty"`
	Commits        []*Commit `protobuf:"bytes,3,rep,name=commits,proto3" json:"commits,omitempty"`
	// contains filtered or unexported fields
}

------------------------------------ -- SCM ------------------------------------

func (*Commits) Descriptor deprecated

func (*Commits) Descriptor() ([]byte, []int)

Deprecated: Use Commits.ProtoReflect.Descriptor instead.

func (*Commits) GetCommits

func (x *Commits) GetCommits() []*Commit

func (*Commits) GetCount

func (x *Commits) GetCount() int32

func (*Commits) GetCountCommiters

func (x *Commits) GetCountCommiters() int32

func (*Commits) ProtoMessage

func (*Commits) ProtoMessage()

func (*Commits) ProtoReflect

func (x *Commits) ProtoReflect() protoreflect.Message

func (*Commits) Reset

func (x *Commits) Reset()

func (*Commits) String

func (x *Commits) String() string

type Complexity

type Complexity struct {
	Cyclomatic *int32 `protobuf:"varint,1,opt,name=cyclomatic,proto3,oneof" json:"cyclomatic,omitempty"`
	// contains filtered or unexported fields
}

func (*Complexity) Descriptor deprecated

func (*Complexity) Descriptor() ([]byte, []int)

Deprecated: Use Complexity.ProtoReflect.Descriptor instead.

func (*Complexity) GetCyclomatic

func (x *Complexity) GetCyclomatic() int32

func (*Complexity) ProtoMessage

func (*Complexity) ProtoMessage()

func (*Complexity) ProtoReflect

func (x *Complexity) ProtoReflect() protoreflect.Message

func (*Complexity) Reset

func (x *Complexity) Reset()

func (*Complexity) String

func (x *Complexity) String() string

type Coupling

type Coupling struct {
	Afferent    int32   `protobuf:"varint,1,opt,name=afferent,proto3" json:"afferent,omitempty"`        // number of classes that depends on this class
	Efferent    int32   `protobuf:"varint,2,opt,name=efferent,proto3" json:"efferent,omitempty"`        // number of classes that this class depends on
	Instability float32 `protobuf:"fixed32,3,opt,name=instability,proto3" json:"instability,omitempty"` // instability of the class
	// contains filtered or unexported fields
}

------------------------------------ -- Coupling ------------------------------------

func (*Coupling) Descriptor deprecated

func (*Coupling) Descriptor() ([]byte, []int)

Deprecated: Use Coupling.ProtoReflect.Descriptor instead.

func (*Coupling) GetAfferent

func (x *Coupling) GetAfferent() int32

func (*Coupling) GetEfferent

func (x *Coupling) GetEfferent() int32

func (*Coupling) GetInstability

func (x *Coupling) GetInstability() float32

func (*Coupling) ProtoMessage

func (*Coupling) ProtoMessage()

func (*Coupling) ProtoReflect

func (x *Coupling) ProtoReflect() protoreflect.Message

func (*Coupling) Reset

func (x *Coupling) Reset()

func (*Coupling) String

func (x *Coupling) String() string

type File

type File struct {
	Path                string       `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Stmts               *Stmts       `protobuf:"bytes,2,opt,name=stmts,proto3" json:"stmts,omitempty"`
	LinesOfCode         *LinesOfCode `protobuf:"bytes,3,opt,name=linesOfCode,proto3" json:"linesOfCode,omitempty"`
	ProgrammingLanguage string       `protobuf:"bytes,4,opt,name=programmingLanguage,proto3" json:"programmingLanguage,omitempty"`
	Commits             *Commits     `protobuf:"bytes,5,opt,name=commits,proto3" json:"commits,omitempty"`
	Errors              []string     `protobuf:"bytes,6,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Represents a file

func (*File) Descriptor deprecated

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetCommits

func (x *File) GetCommits() *Commits

func (*File) GetErrors

func (x *File) GetErrors() []string

func (*File) GetLinesOfCode

func (x *File) GetLinesOfCode() *LinesOfCode

func (*File) GetPath

func (x *File) GetPath() string

func (*File) GetProgrammingLanguage

func (x *File) GetProgrammingLanguage() string

func (*File) GetStmts

func (x *File) GetStmts() *Stmts

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type LinesOfCode

type LinesOfCode struct {
	LinesOfCode           int32 `protobuf:"varint,1,opt,name=linesOfCode,proto3" json:"linesOfCode,omitempty"`
	LogicalLinesOfCode    int32 `protobuf:"varint,2,opt,name=logicalLinesOfCode,proto3" json:"logicalLinesOfCode,omitempty"`
	CommentLinesOfCode    int32 `protobuf:"varint,3,opt,name=commentLinesOfCode,proto3" json:"commentLinesOfCode,omitempty"`
	NonCommentLinesOfCode int32 `protobuf:"varint,4,opt,name=nonCommentLinesOfCode,proto3" json:"nonCommentLinesOfCode,omitempty"`
	// contains filtered or unexported fields
}

------------------------------------ -- Volume: LinesOfCode ------------------------------------

func (*LinesOfCode) Descriptor deprecated

func (*LinesOfCode) Descriptor() ([]byte, []int)

Deprecated: Use LinesOfCode.ProtoReflect.Descriptor instead.

func (*LinesOfCode) GetCommentLinesOfCode

func (x *LinesOfCode) GetCommentLinesOfCode() int32

func (*LinesOfCode) GetLinesOfCode

func (x *LinesOfCode) GetLinesOfCode() int32

func (*LinesOfCode) GetLogicalLinesOfCode

func (x *LinesOfCode) GetLogicalLinesOfCode() int32

func (*LinesOfCode) GetNonCommentLinesOfCode

func (x *LinesOfCode) GetNonCommentLinesOfCode() int32

func (*LinesOfCode) ProtoMessage

func (*LinesOfCode) ProtoMessage()

func (*LinesOfCode) ProtoReflect

func (x *LinesOfCode) ProtoReflect() protoreflect.Message

func (*LinesOfCode) Reset

func (x *LinesOfCode) Reset()

func (*LinesOfCode) String

func (x *LinesOfCode) String() string

type Maintainability

type Maintainability struct {
	MaintainabilityIndex                *float32 `protobuf:"fixed32,1,opt,name=maintainabilityIndex,proto3,oneof" json:"maintainabilityIndex,omitempty"`
	MaintainabilityIndexWithoutComments *float32 `` /* 131-byte string literal not displayed */
	CommentWeight                       *float32 `protobuf:"fixed32,3,opt,name=commentWeight,proto3,oneof" json:"commentWeight,omitempty"`
	// contains filtered or unexported fields
}

func (*Maintainability) Descriptor deprecated

func (*Maintainability) Descriptor() ([]byte, []int)

Deprecated: Use Maintainability.ProtoReflect.Descriptor instead.

func (*Maintainability) GetCommentWeight

func (x *Maintainability) GetCommentWeight() float32

func (*Maintainability) GetMaintainabilityIndex

func (x *Maintainability) GetMaintainabilityIndex() float32

func (*Maintainability) GetMaintainabilityIndexWithoutComments

func (x *Maintainability) GetMaintainabilityIndexWithoutComments() float32

func (*Maintainability) ProtoMessage

func (*Maintainability) ProtoMessage()

func (*Maintainability) ProtoReflect

func (x *Maintainability) ProtoReflect() protoreflect.Message

func (*Maintainability) Reset

func (x *Maintainability) Reset()

func (*Maintainability) String

func (x *Maintainability) String() string

type Name

type Name struct {
	Short     string `protobuf:"bytes,1,opt,name=short,proto3" json:"short,omitempty"`
	Qualified string `protobuf:"bytes,2,opt,name=qualified,proto3" json:"qualified,omitempty"` // fully qualified name (with namespace)
	Describer string `protobuf:"bytes,3,opt,name=describer,proto3" json:"describer,omitempty"` // internal description of statement (e.g. for function: return type + name + parameters)
	Package   string `protobuf:"bytes,4,opt,name=package,proto3" json:"package,omitempty"`     // package name
	// contains filtered or unexported fields
}

------------------------------------ -- Node Types and statements ------------------------------------ represents an identifier (name)

func (*Name) Descriptor deprecated

func (*Name) Descriptor() ([]byte, []int)

Deprecated: Use Name.ProtoReflect.Descriptor instead.

func (*Name) GetDescriber

func (x *Name) GetDescriber() string

func (*Name) GetPackage added in v0.15.0

func (x *Name) GetPackage() string

func (*Name) GetQualified

func (x *Name) GetQualified() string

func (*Name) GetShort

func (x *Name) GetShort() string

func (*Name) ProtoMessage

func (*Name) ProtoMessage()

func (*Name) ProtoReflect

func (x *Name) ProtoReflect() protoreflect.Message

func (*Name) Reset

func (x *Name) Reset()

func (*Name) String

func (x *Name) String() string

type Risk

type Risk struct {
	Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"` // score of risk. Lower is better
	// contains filtered or unexported fields
}

------------------------------------ -- Risk ------------------------------------

func (*Risk) Descriptor deprecated

func (*Risk) Descriptor() ([]byte, []int)

Deprecated: Use Risk.ProtoReflect.Descriptor instead.

func (*Risk) GetScore

func (x *Risk) GetScore() float32

func (*Risk) ProtoMessage

func (*Risk) ProtoMessage()

func (*Risk) ProtoReflect

func (x *Risk) ProtoReflect() protoreflect.Message

func (*Risk) Reset

func (x *Risk) Reset()

func (*Risk) String

func (x *Risk) String() string

type StmtClass

type StmtClass struct {
	Name        *Name               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Stmts       *Stmts              `protobuf:"bytes,2,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location    *StmtLocationInFile `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Comments    []*StmtComment      `protobuf:"bytes,4,rep,name=comments,proto3" json:"comments,omitempty"`
	Operators   []*StmtOperator     `protobuf:"bytes,5,rep,name=operators,proto3" json:"operators,omitempty"`
	Operands    []*StmtOperand      `protobuf:"bytes,6,rep,name=operands,proto3" json:"operands,omitempty"`
	Extends     []*Name             `protobuf:"bytes,7,rep,name=extends,proto3" json:"extends,omitempty"`
	Implements  []*Name             `protobuf:"bytes,8,rep,name=implements,proto3" json:"implements,omitempty"`
	Uses        []*Name             `protobuf:"bytes,9,rep,name=uses,proto3" json:"uses,omitempty"`
	LinesOfCode *LinesOfCode        `protobuf:"bytes,10,opt,name=linesOfCode,proto3" json:"linesOfCode,omitempty"`
	// contains filtered or unexported fields
}

Represents a Class node.

func (*StmtClass) Descriptor deprecated

func (*StmtClass) Descriptor() ([]byte, []int)

Deprecated: Use StmtClass.ProtoReflect.Descriptor instead.

func (*StmtClass) GetComments

func (x *StmtClass) GetComments() []*StmtComment

func (*StmtClass) GetExtends

func (x *StmtClass) GetExtends() []*Name

func (*StmtClass) GetImplements

func (x *StmtClass) GetImplements() []*Name

func (*StmtClass) GetLinesOfCode

func (x *StmtClass) GetLinesOfCode() *LinesOfCode

func (*StmtClass) GetLocation

func (x *StmtClass) GetLocation() *StmtLocationInFile

func (*StmtClass) GetName

func (x *StmtClass) GetName() *Name

func (*StmtClass) GetOperands

func (x *StmtClass) GetOperands() []*StmtOperand

func (*StmtClass) GetOperators

func (x *StmtClass) GetOperators() []*StmtOperator

func (*StmtClass) GetStmts

func (x *StmtClass) GetStmts() *Stmts

func (*StmtClass) GetUses

func (x *StmtClass) GetUses() []*Name

func (*StmtClass) ProtoMessage

func (*StmtClass) ProtoMessage()

func (*StmtClass) ProtoReflect

func (x *StmtClass) ProtoReflect() protoreflect.Message

func (*StmtClass) Reset

func (x *StmtClass) Reset()

func (*StmtClass) String

func (x *StmtClass) String() string

type StmtComment

type StmtComment struct {
	Text     string              `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a comment (multiline or singline)

func (*StmtComment) Descriptor deprecated

func (*StmtComment) Descriptor() ([]byte, []int)

Deprecated: Use StmtComment.ProtoReflect.Descriptor instead.

func (*StmtComment) GetLocation

func (x *StmtComment) GetLocation() *StmtLocationInFile

func (*StmtComment) GetText

func (x *StmtComment) GetText() string

func (*StmtComment) ProtoMessage

func (*StmtComment) ProtoMessage()

func (*StmtComment) ProtoReflect

func (x *StmtComment) ProtoReflect() protoreflect.Message

func (*StmtComment) Reset

func (x *StmtComment) Reset()

func (*StmtComment) String

func (x *StmtComment) String() string

type StmtDecisionCase

type StmtDecisionCase struct {
	Stmts    *Stmts              `protobuf:"bytes,1,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a decision (CASE)

func (*StmtDecisionCase) Descriptor deprecated

func (*StmtDecisionCase) Descriptor() ([]byte, []int)

Deprecated: Use StmtDecisionCase.ProtoReflect.Descriptor instead.

func (*StmtDecisionCase) GetLocation

func (x *StmtDecisionCase) GetLocation() *StmtLocationInFile

func (*StmtDecisionCase) GetStmts

func (x *StmtDecisionCase) GetStmts() *Stmts

func (*StmtDecisionCase) ProtoMessage

func (*StmtDecisionCase) ProtoMessage()

func (*StmtDecisionCase) ProtoReflect

func (x *StmtDecisionCase) ProtoReflect() protoreflect.Message

func (*StmtDecisionCase) Reset

func (x *StmtDecisionCase) Reset()

func (*StmtDecisionCase) String

func (x *StmtDecisionCase) String() string

type StmtDecisionElse

type StmtDecisionElse struct {
	Stmts    *Stmts              `protobuf:"bytes,1,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a decision (ELSE)

func (*StmtDecisionElse) Descriptor deprecated

func (*StmtDecisionElse) Descriptor() ([]byte, []int)

Deprecated: Use StmtDecisionElse.ProtoReflect.Descriptor instead.

func (*StmtDecisionElse) GetLocation

func (x *StmtDecisionElse) GetLocation() *StmtLocationInFile

func (*StmtDecisionElse) GetStmts

func (x *StmtDecisionElse) GetStmts() *Stmts

func (*StmtDecisionElse) ProtoMessage

func (*StmtDecisionElse) ProtoMessage()

func (*StmtDecisionElse) ProtoReflect

func (x *StmtDecisionElse) ProtoReflect() protoreflect.Message

func (*StmtDecisionElse) Reset

func (x *StmtDecisionElse) Reset()

func (*StmtDecisionElse) String

func (x *StmtDecisionElse) String() string

type StmtDecisionElseIf

type StmtDecisionElseIf struct {
	Stmts    *Stmts              `protobuf:"bytes,1,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a decision (ELSEIF)

func (*StmtDecisionElseIf) Descriptor deprecated

func (*StmtDecisionElseIf) Descriptor() ([]byte, []int)

Deprecated: Use StmtDecisionElseIf.ProtoReflect.Descriptor instead.

func (*StmtDecisionElseIf) GetLocation

func (x *StmtDecisionElseIf) GetLocation() *StmtLocationInFile

func (*StmtDecisionElseIf) GetStmts

func (x *StmtDecisionElseIf) GetStmts() *Stmts

func (*StmtDecisionElseIf) ProtoMessage

func (*StmtDecisionElseIf) ProtoMessage()

func (*StmtDecisionElseIf) ProtoReflect

func (x *StmtDecisionElseIf) ProtoReflect() protoreflect.Message

func (*StmtDecisionElseIf) Reset

func (x *StmtDecisionElseIf) Reset()

func (*StmtDecisionElseIf) String

func (x *StmtDecisionElseIf) String() string

type StmtDecisionIf

type StmtDecisionIf struct {
	Stmts    *Stmts              `protobuf:"bytes,1,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a decision (IF)

func (*StmtDecisionIf) Descriptor deprecated

func (*StmtDecisionIf) Descriptor() ([]byte, []int)

Deprecated: Use StmtDecisionIf.ProtoReflect.Descriptor instead.

func (*StmtDecisionIf) GetLocation

func (x *StmtDecisionIf) GetLocation() *StmtLocationInFile

func (*StmtDecisionIf) GetStmts

func (x *StmtDecisionIf) GetStmts() *Stmts

func (*StmtDecisionIf) ProtoMessage

func (*StmtDecisionIf) ProtoMessage()

func (*StmtDecisionIf) ProtoReflect

func (x *StmtDecisionIf) ProtoReflect() protoreflect.Message

func (*StmtDecisionIf) Reset

func (x *StmtDecisionIf) Reset()

func (*StmtDecisionIf) String

func (x *StmtDecisionIf) String() string

type StmtDecisionSwitch

type StmtDecisionSwitch struct {
	Stmts    *Stmts              `protobuf:"bytes,1,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a group of decisions (SWITCH)

func (*StmtDecisionSwitch) Descriptor deprecated

func (*StmtDecisionSwitch) Descriptor() ([]byte, []int)

Deprecated: Use StmtDecisionSwitch.ProtoReflect.Descriptor instead.

func (*StmtDecisionSwitch) GetLocation

func (x *StmtDecisionSwitch) GetLocation() *StmtLocationInFile

func (*StmtDecisionSwitch) GetStmts

func (x *StmtDecisionSwitch) GetStmts() *Stmts

func (*StmtDecisionSwitch) ProtoMessage

func (*StmtDecisionSwitch) ProtoMessage()

func (*StmtDecisionSwitch) ProtoReflect

func (x *StmtDecisionSwitch) ProtoReflect() protoreflect.Message

func (*StmtDecisionSwitch) Reset

func (x *StmtDecisionSwitch) Reset()

func (*StmtDecisionSwitch) String

func (x *StmtDecisionSwitch) String() string

type StmtExternalDependency

type StmtExternalDependency struct {
	ClassName    string `protobuf:"bytes,1,opt,name=className,proto3" json:"className,omitempty"`
	FunctionName string `protobuf:"bytes,2,opt,name=functionName,proto3" json:"functionName,omitempty"`
	Namespace    string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	From         string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
	// contains filtered or unexported fields
}

Represents a external dependency node. Used when code call new X() or X::method() for example

func (*StmtExternalDependency) Descriptor deprecated

func (*StmtExternalDependency) Descriptor() ([]byte, []int)

Deprecated: Use StmtExternalDependency.ProtoReflect.Descriptor instead.

func (*StmtExternalDependency) GetClassName

func (x *StmtExternalDependency) GetClassName() string

func (*StmtExternalDependency) GetFrom added in v0.15.0

func (x *StmtExternalDependency) GetFrom() string

func (*StmtExternalDependency) GetFunctionName

func (x *StmtExternalDependency) GetFunctionName() string

func (*StmtExternalDependency) GetNamespace added in v0.15.0

func (x *StmtExternalDependency) GetNamespace() string

func (*StmtExternalDependency) ProtoMessage

func (*StmtExternalDependency) ProtoMessage()

func (*StmtExternalDependency) ProtoReflect

func (x *StmtExternalDependency) ProtoReflect() protoreflect.Message

func (*StmtExternalDependency) Reset

func (x *StmtExternalDependency) Reset()

func (*StmtExternalDependency) String

func (x *StmtExternalDependency) String() string

type StmtFunction

type StmtFunction struct {
	Name        *Name               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Stmts       *Stmts              `protobuf:"bytes,2,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location    *StmtLocationInFile `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Comments    []*StmtComment      `protobuf:"bytes,4,rep,name=comments,proto3" json:"comments,omitempty"`
	Operators   []*StmtOperator     `protobuf:"bytes,5,rep,name=operators,proto3" json:"operators,omitempty"`
	Operands    []*StmtOperand      `protobuf:"bytes,6,rep,name=operands,proto3" json:"operands,omitempty"`
	Parameters  []*StmtParameter    `protobuf:"bytes,7,rep,name=parameters,proto3" json:"parameters,omitempty"`
	Externals   []*Name             `protobuf:"bytes,8,rep,name=externals,proto3" json:"externals,omitempty"` // dependencies
	LinesOfCode *LinesOfCode        `protobuf:"bytes,9,opt,name=linesOfCode,proto3" json:"linesOfCode,omitempty"`
	// contains filtered or unexported fields
}

Represents a Function node.

func (*StmtFunction) Descriptor deprecated

func (*StmtFunction) Descriptor() ([]byte, []int)

Deprecated: Use StmtFunction.ProtoReflect.Descriptor instead.

func (*StmtFunction) GetComments

func (x *StmtFunction) GetComments() []*StmtComment

func (*StmtFunction) GetExternals

func (x *StmtFunction) GetExternals() []*Name

func (*StmtFunction) GetLinesOfCode

func (x *StmtFunction) GetLinesOfCode() *LinesOfCode

func (*StmtFunction) GetLocation

func (x *StmtFunction) GetLocation() *StmtLocationInFile

func (*StmtFunction) GetName

func (x *StmtFunction) GetName() *Name

func (*StmtFunction) GetOperands

func (x *StmtFunction) GetOperands() []*StmtOperand

func (*StmtFunction) GetOperators

func (x *StmtFunction) GetOperators() []*StmtOperator

func (*StmtFunction) GetParameters

func (x *StmtFunction) GetParameters() []*StmtParameter

func (*StmtFunction) GetStmts

func (x *StmtFunction) GetStmts() *Stmts

func (*StmtFunction) ProtoMessage

func (*StmtFunction) ProtoMessage()

func (*StmtFunction) ProtoReflect

func (x *StmtFunction) ProtoReflect() protoreflect.Message

func (*StmtFunction) Reset

func (x *StmtFunction) Reset()

func (*StmtFunction) String

func (x *StmtFunction) String() string

type StmtInterface

type StmtInterface struct {
	Name     *Name               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Stmts    *Stmts              `protobuf:"bytes,2,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Extends  []*Name             `protobuf:"bytes,4,rep,name=extends,proto3" json:"extends,omitempty"`
	// contains filtered or unexported fields
}

Represents a Interface node.

func (*StmtInterface) Descriptor deprecated

func (*StmtInterface) Descriptor() ([]byte, []int)

Deprecated: Use StmtInterface.ProtoReflect.Descriptor instead.

func (*StmtInterface) GetExtends

func (x *StmtInterface) GetExtends() []*Name

func (*StmtInterface) GetLocation

func (x *StmtInterface) GetLocation() *StmtLocationInFile

func (*StmtInterface) GetName

func (x *StmtInterface) GetName() *Name

func (*StmtInterface) GetStmts

func (x *StmtInterface) GetStmts() *Stmts

func (*StmtInterface) ProtoMessage

func (*StmtInterface) ProtoMessage()

func (*StmtInterface) ProtoReflect

func (x *StmtInterface) ProtoReflect() protoreflect.Message

func (*StmtInterface) Reset

func (x *StmtInterface) Reset()

func (*StmtInterface) String

func (x *StmtInterface) String() string

type StmtLocationInFile

type StmtLocationInFile struct {
	StartLine    int32 `protobuf:"varint,1,opt,name=startLine,proto3" json:"startLine,omitempty"`
	StartFilePos int32 `protobuf:"varint,2,opt,name=startFilePos,proto3" json:"startFilePos,omitempty"`
	EndLine      int32 `protobuf:"varint,3,opt,name=endLine,proto3" json:"endLine,omitempty"`
	EndFilePos   int32 `protobuf:"varint,4,opt,name=endFilePos,proto3" json:"endFilePos,omitempty"`
	BlankLines   int32 `protobuf:"varint,5,opt,name=blankLines,proto3" json:"blankLines,omitempty"`
	// contains filtered or unexported fields
}

Describe the location of statement in file.

func (*StmtLocationInFile) Descriptor deprecated

func (*StmtLocationInFile) Descriptor() ([]byte, []int)

Deprecated: Use StmtLocationInFile.ProtoReflect.Descriptor instead.

func (*StmtLocationInFile) GetBlankLines

func (x *StmtLocationInFile) GetBlankLines() int32

func (*StmtLocationInFile) GetEndFilePos

func (x *StmtLocationInFile) GetEndFilePos() int32

func (*StmtLocationInFile) GetEndLine

func (x *StmtLocationInFile) GetEndLine() int32

func (*StmtLocationInFile) GetStartFilePos

func (x *StmtLocationInFile) GetStartFilePos() int32

func (*StmtLocationInFile) GetStartLine

func (x *StmtLocationInFile) GetStartLine() int32

func (*StmtLocationInFile) ProtoMessage

func (*StmtLocationInFile) ProtoMessage()

func (*StmtLocationInFile) ProtoReflect

func (x *StmtLocationInFile) ProtoReflect() protoreflect.Message

func (*StmtLocationInFile) Reset

func (x *StmtLocationInFile) Reset()

func (*StmtLocationInFile) String

func (x *StmtLocationInFile) String() string

type StmtLoop

type StmtLoop struct {
	Stmts    *Stmts              `protobuf:"bytes,1,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a loop (FOR, FOREACH, WHILE)

func (*StmtLoop) Descriptor deprecated

func (*StmtLoop) Descriptor() ([]byte, []int)

Deprecated: Use StmtLoop.ProtoReflect.Descriptor instead.

func (*StmtLoop) GetLocation

func (x *StmtLoop) GetLocation() *StmtLocationInFile

func (*StmtLoop) GetStmts

func (x *StmtLoop) GetStmts() *Stmts

func (*StmtLoop) ProtoMessage

func (*StmtLoop) ProtoMessage()

func (*StmtLoop) ProtoReflect

func (x *StmtLoop) ProtoReflect() protoreflect.Message

func (*StmtLoop) Reset

func (x *StmtLoop) Reset()

func (*StmtLoop) String

func (x *StmtLoop) String() string

type StmtNamespace

type StmtNamespace struct {
	Name        *Name               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Stmts       *Stmts              `protobuf:"bytes,2,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location    *StmtLocationInFile `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	LinesOfCode *LinesOfCode        `protobuf:"bytes,4,opt,name=linesOfCode,proto3" json:"linesOfCode,omitempty"`
	// contains filtered or unexported fields
}

Represents a namespace node.

func (*StmtNamespace) Descriptor deprecated

func (*StmtNamespace) Descriptor() ([]byte, []int)

Deprecated: Use StmtNamespace.ProtoReflect.Descriptor instead.

func (*StmtNamespace) GetLinesOfCode

func (x *StmtNamespace) GetLinesOfCode() *LinesOfCode

func (*StmtNamespace) GetLocation

func (x *StmtNamespace) GetLocation() *StmtLocationInFile

func (*StmtNamespace) GetName

func (x *StmtNamespace) GetName() *Name

func (*StmtNamespace) GetStmts

func (x *StmtNamespace) GetStmts() *Stmts

func (*StmtNamespace) ProtoMessage

func (*StmtNamespace) ProtoMessage()

func (*StmtNamespace) ProtoReflect

func (x *StmtNamespace) ProtoReflect() protoreflect.Message

func (*StmtNamespace) Reset

func (x *StmtNamespace) Reset()

func (*StmtNamespace) String

func (x *StmtNamespace) String() string

type StmtOperand

type StmtOperand struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*StmtOperand) Descriptor deprecated

func (*StmtOperand) Descriptor() ([]byte, []int)

Deprecated: Use StmtOperand.ProtoReflect.Descriptor instead.

func (*StmtOperand) GetName

func (x *StmtOperand) GetName() string

func (*StmtOperand) ProtoMessage

func (*StmtOperand) ProtoMessage()

func (*StmtOperand) ProtoReflect

func (x *StmtOperand) ProtoReflect() protoreflect.Message

func (*StmtOperand) Reset

func (x *StmtOperand) Reset()

func (*StmtOperand) String

func (x *StmtOperand) String() string

type StmtOperator

type StmtOperator struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

------------------------------------ -- Volume: Operators and Operands ------------------------------------

func (*StmtOperator) Descriptor deprecated

func (*StmtOperator) Descriptor() ([]byte, []int)

Deprecated: Use StmtOperator.ProtoReflect.Descriptor instead.

func (*StmtOperator) GetName

func (x *StmtOperator) GetName() string

func (*StmtOperator) ProtoMessage

func (*StmtOperator) ProtoMessage()

func (*StmtOperator) ProtoReflect

func (x *StmtOperator) ProtoReflect() protoreflect.Message

func (*StmtOperator) Reset

func (x *StmtOperator) Reset()

func (*StmtOperator) String

func (x *StmtOperator) String() string

type StmtParameter

type StmtParameter struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Represents a Parameter node (for function)

func (*StmtParameter) Descriptor deprecated

func (*StmtParameter) Descriptor() ([]byte, []int)

Deprecated: Use StmtParameter.ProtoReflect.Descriptor instead.

func (*StmtParameter) GetName

func (x *StmtParameter) GetName() string

func (*StmtParameter) GetType

func (x *StmtParameter) GetType() string

func (*StmtParameter) ProtoMessage

func (*StmtParameter) ProtoMessage()

func (*StmtParameter) ProtoReflect

func (x *StmtParameter) ProtoReflect() protoreflect.Message

func (*StmtParameter) Reset

func (x *StmtParameter) Reset()

func (*StmtParameter) String

func (x *StmtParameter) String() string

type StmtTrait

type StmtTrait struct {
	Name     *Name               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Stmts    *Stmts              `protobuf:"bytes,2,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a Trait node.

func (*StmtTrait) Descriptor deprecated

func (*StmtTrait) Descriptor() ([]byte, []int)

Deprecated: Use StmtTrait.ProtoReflect.Descriptor instead.

func (*StmtTrait) GetLocation

func (x *StmtTrait) GetLocation() *StmtLocationInFile

func (*StmtTrait) GetName

func (x *StmtTrait) GetName() *Name

func (*StmtTrait) GetStmts

func (x *StmtTrait) GetStmts() *Stmts

func (*StmtTrait) ProtoMessage

func (*StmtTrait) ProtoMessage()

func (*StmtTrait) ProtoReflect

func (x *StmtTrait) ProtoReflect() protoreflect.Message

func (*StmtTrait) Reset

func (x *StmtTrait) Reset()

func (*StmtTrait) String

func (x *StmtTrait) String() string

type StmtUse

type StmtUse struct {
	Name     *Name               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Stmts    *Stmts              `protobuf:"bytes,2,opt,name=stmts,proto3" json:"stmts,omitempty"`
	Location *StmtLocationInFile `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

Represents a Use (or Import) node.

func (*StmtUse) Descriptor deprecated

func (*StmtUse) Descriptor() ([]byte, []int)

Deprecated: Use StmtUse.ProtoReflect.Descriptor instead.

func (*StmtUse) GetLocation

func (x *StmtUse) GetLocation() *StmtLocationInFile

func (*StmtUse) GetName

func (x *StmtUse) GetName() *Name

func (*StmtUse) GetStmts

func (x *StmtUse) GetStmts() *Stmts

func (*StmtUse) ProtoMessage

func (*StmtUse) ProtoMessage()

func (*StmtUse) ProtoReflect

func (x *StmtUse) ProtoReflect() protoreflect.Message

func (*StmtUse) Reset

func (x *StmtUse) Reset()

func (*StmtUse) String

func (x *StmtUse) String() string

type Stmts

type Stmts struct {
	Analyze *Analyze `protobuf:"bytes,1,opt,name=analyze,proto3" json:"analyze,omitempty"`
	// Append here all the possible statements
	StmtClass                []*StmtClass              `protobuf:"bytes,2,rep,name=stmtClass,proto3" json:"stmtClass,omitempty"`
	StmtFunction             []*StmtFunction           `protobuf:"bytes,3,rep,name=stmtFunction,proto3" json:"stmtFunction,omitempty"`
	StmtInterface            []*StmtInterface          `protobuf:"bytes,4,rep,name=stmtInterface,proto3" json:"stmtInterface,omitempty"`
	StmtTrait                []*StmtTrait              `protobuf:"bytes,5,rep,name=stmtTrait,proto3" json:"stmtTrait,omitempty"`
	StmtUse                  []*StmtUse                `protobuf:"bytes,6,rep,name=stmtUse,proto3" json:"stmtUse,omitempty"`
	StmtNamespace            []*StmtNamespace          `protobuf:"bytes,7,rep,name=stmtNamespace,proto3" json:"stmtNamespace,omitempty"`
	StmtDecisionIf           []*StmtDecisionIf         `protobuf:"bytes,8,rep,name=stmtDecisionIf,proto3" json:"stmtDecisionIf,omitempty"`
	StmtDecisionElseIf       []*StmtDecisionElseIf     `protobuf:"bytes,9,rep,name=stmtDecisionElseIf,proto3" json:"stmtDecisionElseIf,omitempty"`
	StmtDecisionElse         []*StmtDecisionElse       `protobuf:"bytes,10,rep,name=stmtDecisionElse,proto3" json:"stmtDecisionElse,omitempty"`
	StmtDecisionCase         []*StmtDecisionCase       `protobuf:"bytes,11,rep,name=stmtDecisionCase,proto3" json:"stmtDecisionCase,omitempty"`
	StmtLoop                 []*StmtLoop               `protobuf:"bytes,12,rep,name=stmtLoop,proto3" json:"stmtLoop,omitempty"`
	StmtDecisionSwitch       []*StmtDecisionSwitch     `protobuf:"bytes,13,rep,name=stmtDecisionSwitch,proto3" json:"stmtDecisionSwitch,omitempty"`
	StmtExternalDependencies []*StmtExternalDependency `protobuf:"bytes,14,rep,name=stmtExternalDependencies,proto3" json:"stmtExternalDependencies,omitempty"`
	// contains filtered or unexported fields
}

Represents a list of statements.

func (*Stmts) Descriptor deprecated

func (*Stmts) Descriptor() ([]byte, []int)

Deprecated: Use Stmts.ProtoReflect.Descriptor instead.

func (*Stmts) GetAnalyze

func (x *Stmts) GetAnalyze() *Analyze

func (*Stmts) GetStmtClass

func (x *Stmts) GetStmtClass() []*StmtClass

func (*Stmts) GetStmtDecisionCase

func (x *Stmts) GetStmtDecisionCase() []*StmtDecisionCase

func (*Stmts) GetStmtDecisionElse

func (x *Stmts) GetStmtDecisionElse() []*StmtDecisionElse

func (*Stmts) GetStmtDecisionElseIf

func (x *Stmts) GetStmtDecisionElseIf() []*StmtDecisionElseIf

func (*Stmts) GetStmtDecisionIf

func (x *Stmts) GetStmtDecisionIf() []*StmtDecisionIf

func (*Stmts) GetStmtDecisionSwitch

func (x *Stmts) GetStmtDecisionSwitch() []*StmtDecisionSwitch

func (*Stmts) GetStmtExternalDependencies

func (x *Stmts) GetStmtExternalDependencies() []*StmtExternalDependency

func (*Stmts) GetStmtFunction

func (x *Stmts) GetStmtFunction() []*StmtFunction

func (*Stmts) GetStmtInterface

func (x *Stmts) GetStmtInterface() []*StmtInterface

func (*Stmts) GetStmtLoop

func (x *Stmts) GetStmtLoop() []*StmtLoop

func (*Stmts) GetStmtNamespace

func (x *Stmts) GetStmtNamespace() []*StmtNamespace

func (*Stmts) GetStmtTrait

func (x *Stmts) GetStmtTrait() []*StmtTrait

func (*Stmts) GetStmtUse

func (x *Stmts) GetStmtUse() []*StmtUse

func (*Stmts) ProtoMessage

func (*Stmts) ProtoMessage()

func (*Stmts) ProtoReflect

func (x *Stmts) ProtoReflect() protoreflect.Message

func (*Stmts) Reset

func (x *Stmts) Reset()

func (*Stmts) String

func (x *Stmts) String() string

type Volume

type Volume struct {
	Loc                     *int32   `protobuf:"varint,1,opt,name=loc,proto3,oneof" json:"loc,omitempty"`
	Lloc                    *int32   `protobuf:"varint,2,opt,name=lloc,proto3,oneof" json:"lloc,omitempty"`
	Cloc                    *int32   `protobuf:"varint,3,opt,name=cloc,proto3,oneof" json:"cloc,omitempty"`
	HalsteadVocabulary      *int32   `protobuf:"varint,4,opt,name=halsteadVocabulary,proto3,oneof" json:"halsteadVocabulary,omitempty"`
	HalsteadLength          *int32   `protobuf:"varint,5,opt,name=halsteadLength,proto3,oneof" json:"halsteadLength,omitempty"`
	HalsteadVolume          *float32 `protobuf:"fixed32,6,opt,name=halsteadVolume,proto3,oneof" json:"halsteadVolume,omitempty"`
	HalsteadDifficulty      *float32 `protobuf:"fixed32,7,opt,name=halsteadDifficulty,proto3,oneof" json:"halsteadDifficulty,omitempty"`
	HalsteadEffort          *float32 `protobuf:"fixed32,8,opt,name=halsteadEffort,proto3,oneof" json:"halsteadEffort,omitempty"`
	HalsteadTime            *float32 `protobuf:"fixed32,9,opt,name=halsteadTime,proto3,oneof" json:"halsteadTime,omitempty"`
	HalsteadEstimatedLength *float32 `protobuf:"fixed32,10,opt,name=halsteadEstimatedLength,proto3,oneof" json:"halsteadEstimatedLength,omitempty"`
	// contains filtered or unexported fields
}

func (*Volume) Descriptor deprecated

func (*Volume) Descriptor() ([]byte, []int)

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetCloc

func (x *Volume) GetCloc() int32

func (*Volume) GetHalsteadDifficulty

func (x *Volume) GetHalsteadDifficulty() float32

func (*Volume) GetHalsteadEffort

func (x *Volume) GetHalsteadEffort() float32

func (*Volume) GetHalsteadEstimatedLength

func (x *Volume) GetHalsteadEstimatedLength() float32

func (*Volume) GetHalsteadLength

func (x *Volume) GetHalsteadLength() int32

func (*Volume) GetHalsteadTime

func (x *Volume) GetHalsteadTime() float32

func (*Volume) GetHalsteadVocabulary

func (x *Volume) GetHalsteadVocabulary() int32

func (*Volume) GetHalsteadVolume

func (x *Volume) GetHalsteadVolume() float32

func (*Volume) GetLloc

func (x *Volume) GetLloc() int32

func (*Volume) GetLoc

func (x *Volume) GetLoc() int32

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) ProtoReflect

func (x *Volume) ProtoReflect() protoreflect.Message

func (*Volume) Reset

func (x *Volume) Reset()

func (*Volume) String

func (x *Volume) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL