Class: TreeSitterLanguagePack::FileMetrics

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFileMetrics

Returns a new instance of FileMetrics.

Parameters:

  • total_lines: (Integer)
  • code_lines: (Integer)
  • comment_lines: (Integer)
  • blank_lines: (Integer)
  • total_bytes: (Integer)
  • node_count: (Integer)
  • error_count: (Integer)
  • max_depth: (Integer)


122
# File 'sig/types.rbs', line 122

def initialize: (?total_lines: Integer, ?code_lines: Integer, ?comment_lines: Integer, ?blank_lines: Integer, ?total_bytes: Integer, ?node_count: Integer, ?error_count: Integer, ?max_depth: Integer) -> void

Instance Attribute Details

#blank_linesInteger (readonly)

Returns the value of attribute blank_lines.

Returns:

  • (Integer)


116
117
118
# File 'sig/types.rbs', line 116

def blank_lines
  @blank_lines
end

#code_linesInteger (readonly)

Returns the value of attribute code_lines.

Returns:

  • (Integer)


114
115
116
# File 'sig/types.rbs', line 114

def code_lines
  @code_lines
end

#comment_linesInteger (readonly)

Returns the value of attribute comment_lines.

Returns:

  • (Integer)


115
116
117
# File 'sig/types.rbs', line 115

def comment_lines
  @comment_lines
end

#error_countInteger (readonly)

Returns the value of attribute error_count.

Returns:

  • (Integer)


119
120
121
# File 'sig/types.rbs', line 119

def error_count
  @error_count
end

#max_depthInteger (readonly)

Returns the value of attribute max_depth.

Returns:

  • (Integer)


120
121
122
# File 'sig/types.rbs', line 120

def max_depth
  @max_depth
end

#node_countInteger (readonly)

Returns the value of attribute node_count.

Returns:

  • (Integer)


118
119
120
# File 'sig/types.rbs', line 118

def node_count
  @node_count
end

#total_bytesInteger (readonly)

Returns the value of attribute total_bytes.

Returns:

  • (Integer)


117
118
119
# File 'sig/types.rbs', line 117

def total_bytes
  @total_bytes
end

#total_linesInteger (readonly)

Returns the value of attribute total_lines.

Returns:

  • (Integer)


113
114
115
# File 'sig/types.rbs', line 113

def total_lines
  @total_lines
end