class RubyVM::AbstractSyntaxTree::Location
RubyVM::AbstractSyntaxTree::Location
实例由 RubyVM::AbstractSyntaxTree::Node#locations
创建。
这个类是 MRI 特有的。
公共实例方法
源
# File ast.rb, line 304 def first_column Primitive.ast_location_first_column end
此 AST 的文本在源代码中开始处的列号。
源
# File ast.rb, line 296 def first_lineno Primitive.ast_location_first_lineno end
此 AST 的文本在源代码中开始处的行号。
源
# File ast.rb, line 328 def inspect Primitive.ast_location_inspect end
以字符串形式返回关于此位置的调试信息。
源
# File ast.rb, line 320 def last_column Primitive.ast_location_last_column end
此 AST 的文本在源代码中结束处的列号。
源
# File ast.rb, line 312 def last_lineno Primitive.ast_location_last_lineno end
此 AST 的文本在源代码中结束处的行号。