Skip to content

LineMatch

A line of source code matched during a code search.

type LineMatch {
line: String!
lineNo: Int!
startOffset: Int!
endOffset: Int!
before: String!
after: String!
fragments: [LineFragment!]!
score: Float!
}

The line of source code matched

Byte offset where the line appears

Byte offset following the final byte of the matched line

Lines of context before the matching line

Lines of context after the matching line

Match score, used to rank matches within a file. Higher is better.

FileMatch object