LEVIATHAN v962456e · 962456eee1

atlantis · Views

class Parser

since 0.1.0-alpha.1linux

Constructors

new

new(string file, string src)

Fields

errors

file

string file

lastStop

string lastStop

lastTextRun

string lastTextRun

line

int line

lintAllowLine

int lintAllowLine

pos

int pos

scriptOpen

int scriptOpen

src

string src

styleOpen

int styleOpen

Methods

classifyOutput

classifyOutput(string exprText, int atLine, bool raw) -> TagInfo

dequote

dequote(string s) -> string | None

endsWithOpenEventAttr

endsWithOpenEventAttr(string t) -> bool

endsWithQuotePair

endsWithQuotePair(string s) -> bool

endsWithUnquotedAttr

endsWithUnquotedAttr(string t) -> bool

err

err(int atLine, string msg) -> void

lintPrecedingContext

lintPrecedingContext(string precedingText, int tagLine) -> void

parseIf

parseIf(Template t, int ifLine, Array<string> condPath) -> IfNode

parsePathOnly

parsePathOnly(string s) -> Array<string> | None

parseSequence

parseSequence(Template t, bool topLevel, string stop) -> Array<Node>

parseTemplate

parseTemplate(string name, string filePath, int mtime, int size) -> Template

readTag

readTag() -> TagInfo

reportLint

reportLint(int atLine, string msg, bool allowed) -> void

trackScriptStyle

trackScriptStyle(string text) -> void

warn

warn(int atLine, string msg) -> void