Squeak Class Documentation category index | class index  
 
SyntaxError
  category: Tools-Debugger
  superclass: StringHolder
  subclasses:

I represent syntax error report for syntax errors encountered when filing in class descriptions from a non-interactive source such as an external file. As a StringHolder, the string to be viewed is the method code or expression containing the error.

The user may fix the error and accept the method to continue the fileIn.

instance methods
  initialization
  category:
setClass:code:debugger:doitFlag:

  menu
  debug
listMenu:
proceed

  message list
  list
listIndex

  other
  contents:notifying:
notify:at:in:

  text menu support
  selectedClass
selectedClassOrMetaClass
selectedMessageName

class methods
  instance creation
  buildMVCViewOn:
buildMorphicViewOn:
errorInClass:withCode:doitFlag:
open:

instance methods
  initialization top  
 

category:

Record the message category of method being compiled. This is used when the user corrects the error and accepts.


 

setClass:code:debugger:doitFlag:


  menu top  
 

debug

Show the stack of the process leading to this syntax editor, typically showing the stack of the compiler as called from fileIn.


 

listMenu:


 

proceed

The user has has edited and presumably fixed the syntax error and the filein can now proceed.


  message list top  
 

list

Answer an array of one element made up of the class name, message category, and message selector in which the syntax error was found. This is the single item in the message list of a view/browser on the receiver.


 

listIndex

There is always exactly one element in my list and it is always selected.


  other top  
 

contents:notifying:

Compile the code in aString and notify aController of any errors. If there are no errors, then automatically proceed.


 

notify:at:in:

Open a syntax error view, inserting the given error message into the given source at the given location. This message is sent to the 'requestor' when the parser or compiler finds a syntax error.


  text menu support top  
 

selectedClass

Answer the class in which the syntax error occurred.


 

selectedClassOrMetaClass

Answer the class of the method being compiled.


 

selectedMessageName

Answer the selector of the method being compiled.


class methods
  instance creation top  
 

buildMVCViewOn:

Answer an MVC view on the given SyntaxError.


 

buildMorphicViewOn:

Answer an Morphic view on the given SyntaxError.


 

errorInClass:withCode:doitFlag:

Open a view whose model is a syntax error. The error occurred when trying to add the given method code to the given class.


 

open:

Answer a standard system view whose model is an instance of me.