Exemplo n.º 1
0
            public JintSwitchCase(Engine engine, SwitchCase switchCase)
            {
                Consequent          = new JintStatementList(null, switchCase.Consequent);
                LexicalDeclarations = HoistingScope.GetLexicalDeclarations(switchCase);

                if (switchCase.Test != null)
                {
                    Test = JintExpression.Build(engine, switchCase.Test);
                }
            }
 protected override void Initialize()
 {
     _statementList       = new JintStatementList(_engine, _statement, _statement.Body);
     _lexicalDeclarations = HoistingScope.GetLexicalDeclarations(_statement);
 }
Exemplo n.º 3
0
 protected override void Initialize(EvaluationContext context)
 {
     _statementList       = new JintStatementList(_statement, _statement.Body);
     _lexicalDeclarations = HoistingScope.GetLexicalDeclarations(_statement);
 }