DefaultSyntax is the instance all syntactical macros in the system are derived from.

Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
activatable = true
kind = "DefaultSyntax"
Active cells (details)
argumentsCode()

returns the code for the argument definition

DefaultSyntax argumentsCode
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:argumentsCode) 
    
    
arity()

nil

method(
  Arity fromArgumentsCode(argumentsCode))
call(+[arguments])

activates this syntax with the arguments given to call

code()

returns the full code of this syntax, as a Text

DefaultSyntax code
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:code) 
    
    
expand(+[arguments])

returns the result of activating this syntax without actually doing the replacement or execution part.

DefaultSyntax expand
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:expand) 
    
    
formattedCode()

returns idiomatically formatted code for this syntax

DefaultSyntax formattedCode
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:formattedCode) 
    
    
inspect()

Returns a text inspection of the object

DefaultSyntax inspect
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:inspect) 
    
    
message()

returns the message chain for this syntax

DefaultSyntax message
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:message) 
    
    
name()

returns the name of the syntax

DefaultSyntax name
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:name) 
    
    
notice()

Returns a brief text inspection of the object

DefaultSyntax notice
  • - should validate type of receiver [ show source ]
    syntax should checkReceiverTypeOn(:notice)