Sha256: 57723c43f0cf9edd26cc216cb634236d00f12a25a81fd1a60784d2c7e51a4b87

Contents?: true

Size: 596 Bytes

Versions: 135

Compression:

Stored size: 596 Bytes

Contents

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

package com.xruby.compiler.codedom;

public class Program extends Expression implements Visitable {
	
	private CompoundStatement compoundStatement_;
	
	public Program(CompoundStatement compoundStatement) {
		compoundStatement_ = compoundStatement;
	}

	public void accept(CodeVisitor visitor) {
		if (null == compoundStatement_) {
			visitor.visitEof(false);
			return;
		}

		compoundStatement_.accept(visitor);
		visitor.visitEof(compoundStatement_.lastStatementHasReturnValue());
	}
}

Version data entries

135 entries across 135 versions & 2 rubygems

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