eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'RBValueNode':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: RBValueNode


Inheritance:

   Object
   |
   +--RBProgramNode
      |
      +--RBStatementNode
         |
         +--RBValueNode
            |
            +--RBArrayNode
            |
            +--RBAssignmentNode
            |
            +--RBBlockNode
            |
            +--RBCascadeNode
            |
            +--RBLiteralNode
            |
            +--RBMessageNode
            |
            +--RBOptimizedNode
            |
            +--RBSTXPrimitiveValueCCodeNode
            |
            +--RBVariableNode

Package:
stx:goodies/refactoryBrowser/parser
Category:
Refactory-AST-Nodes
Version:
rev: 1.14 date: 2023/12/12 22:17:46
user: cg
file: RBValueNode.st directory: goodies/refactoryBrowser/parser
module: stx stc-classLibrary: parser

Description:


BRValueNode is an abstract class that represents a node that returns some value.

Instance Variables:
	parentheses	<SequenceableCollection of: Inteval>	the positions of the parethesis around this node. We need a collection of intervals for stupid code such as "((3 + 4))" that has multiple parethesis around the same expression.


Instance protocol:

accessing
o  addParenthesis: anInterval

o  leftMostReceiver

o  parentheses
@Commented by exept MBP at: 2023-12-12 23:17 Reason:

Usage example(s):

^parentheses isNil

o  start

o  startWithoutParentheses

** This method must be redefined in concrete classes (subclassResponsibility) **

o  stop

o  stopWithoutParentheses

** This method must be redefined in concrete classes (subclassResponsibility) **

comparing
o  semanticallyEqualToNegated: expr2 withMapping: mappingDict
return true,

testing
o  containedBy: anInterval
true if the interval contains me completely

o  hasParentheses

o  isValue



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 19 May 2024 20:36:35 GMT