lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::Complex Class Reference

Represents a Complex literal (that returns an Complex number) More...

#include <nodes.hpp>

Public Attributes

String value
 Value of the complex literal, returned as a String, String("1i") for 1i More...
 
MaybeLoc operator_l
 
Loc expression_l
 

Detailed Description

Represents a Complex literal (that returns an Complex number)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Complex::expression_l

Location of the full expression

-1i
^^^

◆ operator_l

MaybeLoc lib_ruby_parser::Complex::operator_l

Location of the - (but not +) operator. + is a part of the literal:

  1. +1i is String("+1i") with operator = None
  2. -1i is String("1i") with operator = String("-")
-1i
^

◆ value

String lib_ruby_parser::Complex::value

Value of the complex literal, returned as a String, String("1i") for 1i


The documentation for this class was generated from the following file: