コード例 #1
0
ファイル: ExecutionVisitor.cs プロジェクト: pusp/o2platform
        public DebugInformation CreateDebugInformation(Statement statement)
        {
            DebugInformation info = new DebugInformation();
            info.CurrentStatement = statement;
            info.CallStack = CallStack;
            info.Locals = new JsObject() { Prototype = JsUndefined.Instance };
            DebugMode = false;
            foreach (JsDictionaryObject scope in Scopes.ToArray())
            {
                foreach (var property in scope.GetKeys())
                {
                    if (!info.Locals.HasProperty(property))
                    {
                        info.Locals[property] = scope[property];
                    }
                }
            }
            DebugMode = true;

            return info;
        }
コード例 #2
0
ファイル: WhileStatement.cs プロジェクト: splhack/unity-jint
 public WhileStatement(Expression condition, Statement statement)
 {
     Condition = condition;
     Statement = statement;
 }
コード例 #3
0
ファイル: JsFunction.cs プロジェクト: Fedorm/core-master
 public JsFunction(Statement statement)
     : this()
 {
     Statement = statement;
 }
コード例 #4
0
ファイル: JsCodeVisitor.cs プロジェクト: 925coder/ravendb
		public void Visit(Statement expression)
		{
			throw new System.NotSupportedException();
		}
コード例 #5
0
ファイル: CatchClause.cs プロジェクト: lorinbeer/Jint.Phone
 public CatchClause(string identifier, Statement statement) {
     Identifier = identifier;
     Statement = statement;
 }
コード例 #6
0
ファイル: WithStatement.cs プロジェクト: pusp/o2platform
 public WithStatement(Expression expression, Statement statement)
 {
     Statement = statement;
     Expression = expression;
 }
コード例 #7
0
ファイル: ExecutionVisitor.cs プロジェクト: cosh/Jint
        public DebugInformation CreateDebugInformation(Statement statement)
        {
            DebugInformation info = new DebugInformation();
            info.CurrentStatement = statement;
            info.CallStack = CallStack;
            info.Locals = new JsObject(JsNull.Instance);
            DebugMode = false;

            foreach (var property in CurrentScope.GetKeys())
                info.Locals[property] = CurrentScope[property];

            DebugMode = true;

            return info;
        }
コード例 #8
0
ファイル: ExecutionVisitor.cs プロジェクト: cosh/Jint
 public void Visit(Statement expression)
 {
     // fallback for an unsupported expression
     throw new NotImplementedException();
 }
コード例 #9
0
ファイル: JsFunction.cs プロジェクト: splhack/unity-jint
 public JsFunction(IGlobal global, Statement statement)
     : this(global.FunctionClass.PrototypeProperty)
 {
     Statement = statement;
 }
コード例 #10
0
ファイル: CommaOperatorStatement.cs プロジェクト: cosh/Jint
 public StatementInfo(int i, Statement s)
 {
     index = i;
     statement = s;
 }
コード例 #11
0
ファイル: ExecutionVisitor.cs プロジェクト: pusp/o2platform
 public void Visit(Statement expression)
 {
     throw new NotImplementedException();
 }
コード例 #12
0
ファイル: FinallyClause.cs プロジェクト: pusp/o2platform
 public FinallyClause(Statement statement)
 {
     Statement = statement;
 }
コード例 #13
0
ファイル: IronJint.cs プロジェクト: welias/IronWASP
        void Analyze(LinkedList<Statement> Statements)
        {
            Statement[] Stmts = new Statement[Statements.Count];
            Statements.CopyTo(Stmts, 0);
            for (int i = 0; i < Stmts.Length; i++)
            {

                if (Stmts[i] != null) Analyze(Stmts[i]);
            }
        }
コード例 #14
0
ファイル: IronJint.cs プロジェクト: welias/IronWASP
 void SetCurrentLineAndCharNos(Statement Stmt)
 {
     if (Stmt != null)
     {
         if (Stmt.Source != null)
         {
             CurrentLineNo = Stmt.Source.Start.Line;
             CurrentCharNo = Stmt.Source.Start.Char;
         }
     }
 }
コード例 #15
0
 public FinallyClause(Statement statement)
 {
     Statement = statement;
 }