Sha256: edcb522624701edf6d8ec273a5d220a77b4e6bb167f295c404eeff72d60c4f22

Contents?: true

Size: 763 Bytes

Versions: 135

Compression:

Stored size: 763 Bytes

Contents

/**
 * Copyright 2005-2007 Xue Yong Zhi
 * Distributed under the BSD License
 */

package com.xruby.compiler.codedom;

import java.util.ArrayList;

public class ExpressionStatement extends Statement {
	private Expression expression;

	public ExpressionStatement(Expression exp) {
		expression = exp;
	}

	public Expression getExpression() {
		return expression;
	}

	public void accept(CodeVisitor visitor) {
		this.expression.addLineno(visitor);
        expression.accept(visitor);
	}

	void getNewlyAssignedVariables(ISymbolTable symboltable, ArrayList<String> result) {
		expression.getNewlyAssignedVariables(symboltable, result);
	}

    void pullBlock(ArrayList<Block> result) {
        expression.pullBlock(result);
    }
}

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-3.2.2 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.2.beta platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.1 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.9 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.8 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.7 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.6 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.5 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.4 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.2 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.2.0.beta.1 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.1 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.1.beta platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.0 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.0.beta.5 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.0.beta.4 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.0.beta.3 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.0.beta.2 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java
rhodes-3.1.0.beta.1 platform/shared/xruby/src/com/xruby/compiler/codedom/ExpressionStatement.java