doloopstatement.cs
来自「全功能c#编译器」· CS 代码 · 共 73 行
CS
73 行
using System;
using System.Diagnostics;
using System.Collections;
namespace ICSharpCode.CsVbRefactory.Parser.AST
{
public class DoLoopStatement : Statement
{
Expression condition;
Statement embeddedStatement;
ConditionType conditionType;
ConditionPosition conditionPosition;
public ConditionPosition ConditionPosition {
get {
return conditionPosition;
}
set {
conditionPosition = value;
}
}
public ConditionType ConditionType {
get {
return conditionType;
}
set {
conditionType = value;
}
}
public Expression Condition {
get {
return condition;
}
set {
condition = value == null ? Expression.Null : value;
}
}
public Statement EmbeddedStatement {
get {
return embeddedStatement;
}
set {
embeddedStatement = value == null ? Statement.Null : value;
}
}
public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition)
{
this.Condition = condition;
this.EmbeddedStatement = embeddedStatement;
this.ConditionType = conditionType;
this.ConditionPosition = conditionPosition;
}
public override object AcceptVisitor(IASTVisitor visitor, object data)
{
return visitor.Visit(this, data);
}
public override string ToString()
{
return String.Format("[DoLoopStatement: ConditionPosition = {0}, ConditionType = {1}, Condition = {2}, EmbeddedStatement = {3}]",
ConditionPosition,
ConditionType,
Condition,
EmbeddedStatement);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?