FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jruby/core/src/main/java/org/jruby/ast/ComplexNode.java at master · jruby/jruby · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
jruby
/
jruby
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
946
Star
3.9k
Code
Issues
840
Pull requests
109
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
jruby
/
core
/
src
/
main
/
java
/
org
/
jruby
/
ast
/
ComplexNode.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
52 lines (40 loc) · 1.17 KB
Breadcrumbs
jruby
/
core
/
src
/
main
/
java
/
org
/
jruby
/
ast
/
ComplexNode.java
Copy path
File metadata and controls
52 lines (40 loc) · 1.17 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
org
.
jruby
.
ast
;
import
java
.
util
.
List
;
import
org
.
jruby
.
Ruby
;
import
org
.
jruby
.
ast
.
visitor
.
NodeVisitor
;
import
org
.
jruby
.
ir
.
runtime
.
IRRuntimeHelpers
;
import
org
.
jruby
.
runtime
.
builtin
.
IRubyObject
;
public
class
ComplexNode
extends
NumericNode
implements
SideEffectFree
{
private
NumericNode
y
;
public
ComplexNode
(
int
line
,
NumericNode
y
) {
super
(
line
);
this
.
y
=
y
;
}
@
Override
public
<
T
>
T
accept
(
NodeVisitor
<
T
>
visitor
) {
return
visitor
.
visitComplexNode
(
this
);
}
@
Override
public
List
<
Node
>
childNodes
() {
return
Node
.
createList
(
y
);
}
@
Override
public
NodeType
getNodeType
() {
return
NodeType
.
COMPLEXNODE
;
}
public
NumericNode
getNumber
() {
return
y
;
}
public
void
setNumber
(
NumericNode
y
) {
this
.
y
=
y
;
}
@
Override
public
IRubyObject
literalValue
(
Ruby
runtime
) {
return
IRRuntimeHelpers
.
newComplexRaw
(
runtime
.
getCurrentContext
(),
y
.
literalValue
(
runtime
));
}
}
Back
|
FazBrowse Home
|
New Git URL