Class: TreeSitterLanguagePack::FileMetrics
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::FileMetrics
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#blank_lines ⇒ Integer
readonly
Returns the value of attribute blank_lines.
-
#code_lines ⇒ Integer
readonly
Returns the value of attribute code_lines.
-
#comment_lines ⇒ Integer
readonly
Returns the value of attribute comment_lines.
-
#error_count ⇒ Integer
readonly
Returns the value of attribute error_count.
-
#max_depth ⇒ Integer
readonly
Returns the value of attribute max_depth.
-
#node_count ⇒ Integer
readonly
Returns the value of attribute node_count.
-
#total_bytes ⇒ Integer
readonly
Returns the value of attribute total_bytes.
-
#total_lines ⇒ Integer
readonly
Returns the value of attribute total_lines.
Instance Method Summary collapse
-
#initialize ⇒ FileMetrics
constructor
A new instance of FileMetrics.
Constructor Details
#initialize ⇒ FileMetrics
Returns a new instance of FileMetrics.
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_lines ⇒ Integer (readonly)
Returns the value of attribute blank_lines.
116 117 118 |
# File 'sig/types.rbs', line 116 def blank_lines @blank_lines end |
#code_lines ⇒ Integer (readonly)
Returns the value of attribute code_lines.
114 115 116 |
# File 'sig/types.rbs', line 114 def code_lines @code_lines end |
#comment_lines ⇒ Integer (readonly)
Returns the value of attribute comment_lines.
115 116 117 |
# File 'sig/types.rbs', line 115 def comment_lines @comment_lines end |
#error_count ⇒ Integer (readonly)
Returns the value of attribute error_count.
119 120 121 |
# File 'sig/types.rbs', line 119 def error_count @error_count end |
#max_depth ⇒ Integer (readonly)
Returns the value of attribute max_depth.
120 121 122 |
# File 'sig/types.rbs', line 120 def max_depth @max_depth end |
#node_count ⇒ Integer (readonly)
Returns the value of attribute node_count.
118 119 120 |
# File 'sig/types.rbs', line 118 def node_count @node_count end |
#total_bytes ⇒ Integer (readonly)
Returns the value of attribute total_bytes.
117 118 119 |
# File 'sig/types.rbs', line 117 def total_bytes @total_bytes end |
#total_lines ⇒ Integer (readonly)
Returns the value of attribute total_lines.
113 114 115 |
# File 'sig/types.rbs', line 113 def total_lines @total_lines end |