Jurassic.Compiler.Lexer.Lexer C# (CSharp) Method

Lexer() public method

Creates a Lexer instance with the given source of text.
public Lexer ( ScriptEngine engine, ScriptSource source ) : System
engine ScriptEngine The associated script engine.
source ScriptSource The source of javascript code.
return System
        public Lexer(ScriptEngine engine, ScriptSource source)
        {
            if (engine == null)
                throw new ArgumentNullException("engine");
            if (source == null)
                throw new ArgumentNullException("source");
            this.engine = engine;
            this.source = source;
            this.reader = source.GetReader();
            this.lineNumber = 1;
            this.columnNumber = 1;
        }