eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptCompletionEngine':

Home

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

Class: JavaScriptCompletionEngine


Inheritance:

   Object
   |
   +--JavaScriptCompletionEngine

Package:
stx:libjavascript
Category:
Languages-JavaScript-Compiling & Parsing
Version:
rev: 1.13 date: 2018/04/26 13:28:41
user: cg
file: JavaScriptCompletionEngine.st directory: libjavascript
module: stx stc-classLibrary: libjavascript

Instance protocol:

accessing
o  klass

completion
o  completeForMethod: methodOrNil class: classOrNil context: contextOrNil codeView: codeViewArg into: actionBlock
Transcript showCR:'JS completion: error while parsing ignored'.

private-completion
o  completeGlobalVariables
First, globals starting with typed prefix

o  completeLocalVariables
Make those starting with typed prefix first in the list.

o  completeMessage
Now, have to translate selectors from Smalltalk to JavaScript form

o  completeVariable

private-helpers
o  classOfNode: aNode
when showing possible completions for a message, it is a good idea to know what the reveiver
is.

o  selectorToFunctionName: selector
self error: 'Invalid JavaScript function/method name'.



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 19 Sep 2018 08:53:11 GMT