Documentation
¶
Overview ¶
Package scip reads the parts of a SCIP index that stacklit needs (documents, occurrences, symbol names) with a small hand-written protobuf decoder, so no protobuf dependency is added. Unknown fields are skipped.
Index ¶
Constants ¶
const (
RoleDefinition = 0x1
)
Role bits on an occurrence, from the SCIP schema.
const SrcTag = "scip"
SrcTag is written into the src field of edges this package upgrades.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
Path string
Occurrences []Occurrence
}
Document is one indexed source file.
type Index ¶
type Index struct {
Documents []Document
}
Index is the decoded subset of a SCIP index.
type Occurrence ¶
Occurrence is one symbol mention. Lines are zero-based like the format.
type Stats ¶
type Stats struct {
Upgraded int // INFERRED edges now EXACT
AlreadyExact int // EXTRACTED edges the index also confirms
StillInferred int // INFERRED edges the index did not confirm
UnmatchedFiles int // indexed documents with no node in the graph
DocumentsParsed int
}
Stats reports what Upgrade changed.