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!}Fields
Section titled “Fields”LineMatch.line ● String!non-nullscalar {#line}
Section titled “LineMatch.line ● String! {#line}”The line of source code matched
LineMatch.lineNo ● Int!non-nullscalar {#line-no}
Section titled “LineMatch.lineNo ● Int! {#line-no}”LineMatch.startOffset ● Int!non-nullscalar {#start-offset}
Section titled “LineMatch.startOffset ● Int! {#start-offset}”Byte offset where the line appears
LineMatch.endOffset ● Int!non-nullscalar {#end-offset}
Section titled “LineMatch.endOffset ● Int! {#end-offset}”Byte offset following the final byte of the matched line
LineMatch.before ● String!non-nullscalar {#before}
Section titled “LineMatch.before ● String! {#before}”Lines of context before the matching line
LineMatch.after ● String!non-nullscalar {#after}
Section titled “LineMatch.after ● String! {#after}”Lines of context after the matching line
LineMatch.fragments ● [LineFragment!]!non-nullobject {#fragments}
Section titled “LineMatch.fragments ● [LineFragment!]! {#fragments}”LineMatch.score ● Float!non-nullscalar {#score}
Section titled “LineMatch.score ● Float! {#score}”Match score, used to rank matches within a file. Higher is better.
Member Of
Section titled “Member Of”FileMatch object