eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'RBMethodNode':

Home

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

Class: RBMethodNode


Inheritance:

   Object
   |
   +--RBProgramNode
      |
      +--RBMethodNode
         |
         +--RBMetaMethodNode
         |
         +--RBPatternMethodNode

Package:
stx:goodies/refactoryBrowser/parser
Category:
Refactory-AST-Nodes
Version:
rev: 1.48 date: 2023/12/12 22:18:10
user: cg
file: RBMethodNode.st directory: goodies/refactoryBrowser/parser
module: stx stc-classLibrary: parser

Class protocol:

instance creation
o  selector: aSymbol arguments: variableNodes body: aSequenceNode

o  selector: aSymbol body: aSequenceNode

o  selectorParts: tokenCollection arguments: variableNodes


Instance protocol:

accessing
o  addNode: aNode

o  addReturn

o  addSelfReturn

o  allArgumentVariablesInto: aCollection

o  allDefinedVariables

o  allVariablesOnScope
allArgumentVariables

o  argumentNames

o  arguments

o  arguments: variableNodes

o  blockScope

o  body

o  body: stmtsNode

o  children

o  methodScope

o  newSource
return a (horribly formatted) new source

o  pragmas

o  pragmas: aCollection

o  primitiveSources
returns a oollection of the resources/tags strings

o  renameSelector: newSelector andArguments: varNodeCollection

o  selector

o  selector: aSelector

o  source

o  source: anObject

o  start

o  stop

o  tags
^tags isNil ifTrue: [#()] ifFalse: [tags]

o  tags: aCollectionOfIntervals

o  temporaries

comparing
o  = anObject
(comment from inherited method)
return true if the receiver and the arg have the same structure.
Notice:
This method is partially open coded (inlined) by the compiler(s)
identical objects are always considered equal.
redefining it may not work as expected.

o  equalTo: anObject withMapping: aDictionary
return true, if I am equal to another node, with a given variable name mapping.
Side effect: update the mapping dictionary as required to reflect a matching mapping (if possible)

o  equalTo: anObject withSelectorMapping: aDictionary
return true, if I am equal to another node, with a given selector name mapping.
Side effect: update the mapping dictionary as required to reflect a matching mapping (if possible)

o  hash
(comment from inherited method)
return an Integer useful as a hash key for the receiver.
This hash should return same values for objects with same
contents (i.e. use this to hash on structure)

o  semanticallyEqualTo: anObject withMapping: aDictionary
return true, if I am semantically equal to another node, with a given variable name mapping.
Side effect: update the mapping dictionary as required to reflect a matching mapping (if possible)

o  semanticallyEqualTo: anObject withMapping: aDictionary ignoringSelector: ignoringSelector
return true, if I am semantically equal to another node, with a given variable name mapping.
Side effect: update the mapping dictionary as required to reflect a matching mapping (if possible)

o  semanticallyEqualTo: anObject withMapping: aDictionary ignoringSelector: ignoringSelector ignoringAnnotations: ignoringAnnotationsBoolOrCollection
return true, if I am semantically equal to another node, with a given variable name mapping.
Side effect: update the mapping dictionary as required to reflect a matching mapping (if possible)

copying-private
o  postCopy

enumeration
o  variableNodesDo: aBlock
evaluate a Block for all variable nodes

initialization & release
o  selectorParts: tokenCollection arguments: variableNodes

matching
o  copyInContext: aDictionary

o  match: aNode inContext: aDictionary

printing
o  printOn: aStream

private
o  buildSelector
to be checked: this creates symbols, although it probably shouldn't

o  changeSourceSelectors: oldSelectorParts arguments: oldArguments
If this is the same number of arguments, we try a one to one replacement of selector parts and arguments.
If this is not the case try to rewrite the signature as a whole,
what unfortunately drops the comments within the signature.

o  reformatSource

o  selectorParts

o  selectorParts: tokenCollection

replacing
o  replaceNode: aNode withNode: anotherNode

testing
o  defines: aName

o  isLast: aNode

o  isMethod

o  isPrimitive

o  lastIsLoop

o  lastIsReturn

o  references: aVariableName

o  uses: aNode

visitor
o  acceptCommentsAfterVisitor: aVisitor

o  acceptCommentsBeforeVisitor: aVisitor

o  acceptVisitor: aProgramNodeVisitor



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Tue, 03 Dec 2024 17:30:42 GMT