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)


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

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?

Returns the value of attribute blank_lines.

Returns:

  • (Integer, nil)


62
63
64
# File 'sig/types.rbs', line 62

def blank_lines
  @blank_lines
end

#code_linesInteger?

Returns the value of attribute code_lines.

Returns:

  • (Integer, nil)


60
61
62
# File 'sig/types.rbs', line 60

def code_lines
  @code_lines
end

#comment_linesInteger?

Returns the value of attribute comment_lines.

Returns:

  • (Integer, nil)


61
62
63
# File 'sig/types.rbs', line 61

def comment_lines
  @comment_lines
end

#error_countInteger?

Returns the value of attribute error_count.

Returns:

  • (Integer, nil)


65
66
67
# File 'sig/types.rbs', line 65

def error_count
  @error_count
end

#max_depthInteger?

Returns the value of attribute max_depth.

Returns:

  • (Integer, nil)


66
67
68
# File 'sig/types.rbs', line 66

def max_depth
  @max_depth
end

#node_countInteger?

Returns the value of attribute node_count.

Returns:

  • (Integer, nil)


64
65
66
# File 'sig/types.rbs', line 64

def node_count
  @node_count
end

#total_bytesInteger?

Returns the value of attribute total_bytes.

Returns:

  • (Integer, nil)


63
64
65
# File 'sig/types.rbs', line 63

def total_bytes
  @total_bytes
end

#total_linesInteger?

Returns the value of attribute total_lines.

Returns:

  • (Integer, nil)


59
60
61
# File 'sig/types.rbs', line 59

def total_lines
  @total_lines
end