File: ../../Developer.FoundationDotJS.org/wwwroot/Tools/ScriptFormatter/Foundation.Tools.ScriptFormatter.js

Foundation.Tools
Class ScriptFormatter

Object
  
 
 
Foundation.Tools.ScriptFormatter

All Implemented Interfaces:

Class


Foundation.Tools.ScriptFormatter

implements Foundation.Class

Constructor Summary
Foundation.Tools.ScriptFormatter()

Method Summary
 addHighlights(colored, original)
 append(value)
 appendIndentation(backOne, appendee)
 appendMultilineSeparation(appendee)
 appendNewLine(appendee)
 colorize(script)
 colorizeAppendFromMark(color)
 colorizeBlockComment()
 colorizeFunctionCall(start)
 colorizeLineComment()
 colorizeOrPass(type)
 colorizeRegExp()
 colorizeScript()
 colorizeString()
 configurePerSettings()
 createColorizer()
 dispose()
 getChar()
 getColoredIndentation(depth)
 getColoredNewLine()
 getFromMark()
 getHtmlNewLine()
 getInsertIndex(colored, index)
 getLeader()
 getLineNumber(index)
 getMultilineIndent()
 getMultilineIndentAtIndex(index, previousIndents)
 getPlainIndentation(depth)
 getPlainNewLine()
static  getSpaceString(size)
 insertHighlight(colored, index)
 insertHighlightSpans(colored)
 isAtBlockComment()
 isAtBlockStatement()
 isAtEndOfScript()
 isAtFunctionCall()
 isAtLineComment()
 isAtNonFunctionCall()
 isAtPunctuator()
 isAtRegExp()
 isAtString()
 isAtWhiteSpace()
 isAtWord()
 isNext()
 isPrecedingExpression()
 mark()
 measureToPrecedingNewLine(index)
 movePast(target)
 moveTo()
 passBlockComment()
 passExpressionBackwards()
 passLineComment()
 passMatchingDelimeter()
 passNormal()
 passRegExp()
 passString()
 passWhiteSpace()
 passWhiteSpaceBackwards()
 passWithSlashEscape()
 pop()
 process(script)
static  process(script)
 processAtBlockComment()
 processAtBlockStatement(statement)
 processAtCloseBracket()
 processAtLineComment()
 processAtOpenBracket()
 processAtSemicolon()
 processCodeForColoredHtml(code)
 processCodeForPlain(code)
 processCodeForUncoloredHtml(code)
 processEnd()
 processScript()
 processStatement()
 processToPosition(backOne)
 push()
 setHighlightColorAtIndex(index, color, scrollIntoView, doc, ele)
 setHighlightColorForAll(color, doc)
 setIndentation(statement, nextIsNotBrace)
 setScript(script)
 startsWith()

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

ScriptFormatter

Foundation.Tools.ScriptFormatter()

Method Detail

addHighlights

addHighlights(colored,
              original)
Parameters:
colored - 

original - 


append

append(value)
Parameters:
value - 


appendIndentation

appendIndentation(backOne,
                  appendee)
Parameters:
backOne - 

appendee - 


appendMultilineSeparation

appendMultilineSeparation(appendee)
Parameters:
appendee - 


appendNewLine

appendNewLine(appendee)
Parameters:
appendee - 


colorize

colorize(script)
Parameters:
script - 


colorizeAppendFromMark

colorizeAppendFromMark(color)
Parameters:
color - 


colorizeBlockComment

colorizeBlockComment()

colorizeFunctionCall

colorizeFunctionCall(start)
Parameters:
start - 


colorizeLineComment

colorizeLineComment()

colorizeOrPass

colorizeOrPass(type)
Parameters:
type - 


colorizeRegExp

colorizeRegExp()

colorizeScript

colorizeScript()

colorizeString

colorizeString()

configurePerSettings

configurePerSettings()

createColorizer

createColorizer()

dispose

dispose()
Overrides:
dispose in class Class

getChar

getChar()

getColoredIndentation

getColoredIndentation(depth)
Parameters:
depth - 


getColoredNewLine

getColoredNewLine()

getFromMark

getFromMark()

getHtmlNewLine

getHtmlNewLine()

getInsertIndex

getInsertIndex(colored,
               index)
Parameters:
colored - 

index - 


getLeader

getLeader()

getLineNumber

getLineNumber(index)
Parameters:
index - 


getMultilineIndent

getMultilineIndent()

getMultilineIndentAtIndex

getMultilineIndentAtIndex(index,
                          previousIndents)
Parameters:
index - 

previousIndents - 


getPlainIndentation

getPlainIndentation(depth)
Parameters:
depth - 


getPlainNewLine

getPlainNewLine()

getSpaceString

static getSpaceString(size)
Parameters:
size - 


insertHighlight

insertHighlight(colored,
                index)
Parameters:
colored - 

index - 


insertHighlightSpans

insertHighlightSpans(colored)
Parameters:
colored - 


isAtBlockComment

isAtBlockComment()

isAtBlockStatement

isAtBlockStatement()

isAtEndOfScript

isAtEndOfScript()

isAtFunctionCall

isAtFunctionCall()

isAtLineComment

isAtLineComment()

isAtNonFunctionCall

isAtNonFunctionCall()

isAtPunctuator

isAtPunctuator()

isAtRegExp

isAtRegExp()

isAtString

isAtString()

isAtWhiteSpace

isAtWhiteSpace()

isAtWord

isAtWord()

isNext

isNext()

isPrecedingExpression

isPrecedingExpression()

mark

mark()

measureToPrecedingNewLine

measureToPrecedingNewLine(index)
Parameters:
index - 


movePast

movePast(target)
Parameters:
target - 


moveTo

moveTo()

passBlockComment

passBlockComment()

passExpressionBackwards

passExpressionBackwards()

passLineComment

passLineComment()

passMatchingDelimeter

passMatchingDelimeter()

passNormal

passNormal()

passRegExp

passRegExp()

passString

passString()

passWhiteSpace

passWhiteSpace()

passWhiteSpaceBackwards

passWhiteSpaceBackwards()

passWithSlashEscape

passWithSlashEscape()

pop

pop()

process

process(script)
Parameters:
script - 


process

static process(script)
Parameters:
script - 


processAtBlockComment

processAtBlockComment()

processAtBlockStatement

processAtBlockStatement(statement)
Parameters:
statement - 


processAtCloseBracket

processAtCloseBracket()

processAtLineComment

processAtLineComment()

processAtOpenBracket

processAtOpenBracket()

processAtSemicolon

processAtSemicolon()

processCodeForColoredHtml

processCodeForColoredHtml(code)
Parameters:
code - 


processCodeForPlain

processCodeForPlain(code)
Parameters:
code - 


processCodeForUncoloredHtml

processCodeForUncoloredHtml(code)
Parameters:
code - 


processEnd

processEnd()

processScript

processScript()

processStatement

processStatement()

processToPosition

processToPosition(backOne)
Parameters:
backOne - 


push

push()

setHighlightColorAtIndex

setHighlightColorAtIndex(index,
                         color,
                         scrollIntoView,
                         doc,
                         ele)
Parameters:
index - 

color - 

scrollIntoView - 

doc - 

ele - 


setHighlightColorForAll

setHighlightColorForAll(color,
                        doc)
Parameters:
color - 

doc - 


setIndentation

setIndentation(statement,
               nextIsNotBrace)
Parameters:
statement - 

nextIsNotBrace - 


setScript

setScript(script)
Parameters:
script - 


startsWith

startsWith()