class RubyVM::AbstractSyntaxTree::Location
RubyVM::AbstractSyntaxTree::Location 实例由 RubyVM::AbstractSyntaxTree::Node#locations 创建。
此类是 MRI 特有的。
Public Instance Methods
Source
# File ast.rb, line 304 def first_column Primitive.ast_location_first_column end
此 AST 文本开始的源代码中的列号。
Source
# File ast.rb, line 296 def first_lineno Primitive.ast_location_first_lineno end
此 AST 文本开始的源代码中的行号。
Source
# File ast.rb, line 328 def inspect Primitive.ast_location_inspect end
返回此位置的调试信息(字符串格式)。
Source
# File ast.rb, line 320 def last_column Primitive.ast_location_last_column end
此 AST 文本结束的源代码中的列号。
Source
# File ast.rb, line 312 def last_lineno Primitive.ast_location_last_lineno end
此 AST 文本结束的源代码中的行号。