Example #1
0
		// ExprStmt
		public virtual bool Walk(ExprStmt node) { return true; }
Example #2
0
		public virtual void PostWalk(ExprStmt node) { }
Example #3
0
		public override void PostWalk(ExprStmt node) { }
Example #4
0
		// ExprStmt
		public override bool Walk(ExprStmt node) { return false; }
Example #5
0
        private Stmt ParseExprStmt()
        {
            Expr ret = ParseExpr();
            if (!EatSemiOrInteractiveEndOfFile())
                return null;

            if (ret is ErrorExpr)
                NextToken();

            ExprStmt stmt = new ExprStmt(ret);
            stmt.SetLoc(_globalParent, ret.StartIndex, GetEnd());
            if (_sourceUnit.Kind != SourceCodeKind.InteractiveCode && _sourceUnit.Kind != SourceCodeKind.AutoDetect) // don't normally allow statements like a, or a + 2, without assigning the value
                stmt.ValidateExpression();
            return stmt;
        }
Example #6
0
 public override bool Walk(ExprStmt node)
 {
     UpdateLoops(node);
     return base.Walk(node);
 }
		// ExprStmt
		public override bool Walk(ExprStmt node)
		{
			node.Parent = _currentScope;
			
			return base.Walk(node);
		}