|
|
|
@ -2421,12 +2421,6 @@ namespace ICSharpCode.NRefactory.Ast { |
|
|
|
elseIfSections = new List<ElseIfSection>(); |
|
|
|
elseIfSections = new List<ElseIfSection>(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public bool HasElseIfSections { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return elseIfSections.Count > 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool HasElseStatements { |
|
|
|
public bool HasElseStatements { |
|
|
|
get { |
|
|
|
get { |
|
|
|
return falseStatement.Count > 0; |
|
|
|
return falseStatement.Count > 0; |
|
|
|
@ -2442,6 +2436,12 @@ namespace ICSharpCode.NRefactory.Ast { |
|
|
|
if (falseStatement != null) falseStatement.Parent = this; |
|
|
|
if (falseStatement != null) falseStatement.Parent = this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool HasElseIfSections { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return elseIfSections.Count > 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public IfElseStatement(Expression condition, Statement trueStatement) |
|
|
|
public IfElseStatement(Expression condition, Statement trueStatement) |
|
|
|
: this(condition) { |
|
|
|
: this(condition) { |
|
|
|
@ -5515,32 +5515,6 @@ public UsingDeclaration(string @namespace, TypeReference alias) { usings = new L |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class XmlCommentExpression : XmlExpression { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string content; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string Content { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return content; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
set { |
|
|
|
|
|
|
|
content = value ?? ""; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public XmlCommentExpression() { |
|
|
|
|
|
|
|
content = ""; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override object AcceptVisitor(IAstVisitor visitor, object data) { |
|
|
|
|
|
|
|
return visitor.VisitXmlCommentExpression(this, data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override string ToString() { |
|
|
|
|
|
|
|
return string.Format("[XmlCommentExpression Content={0}]", Content); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class XmlContentExpression : XmlExpression { |
|
|
|
public class XmlContentExpression : XmlExpression { |
|
|
|
|
|
|
|
|
|
|
|
string content; |
|
|
|
string content; |
|
|
|
@ -5565,8 +5539,9 @@ public UsingDeclaration(string @namespace, TypeReference alias) { usings = new L |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public XmlContentExpression() { |
|
|
|
public XmlContentExpression(string content, XmlContentType type) { |
|
|
|
content = ""; |
|
|
|
Content = content; |
|
|
|
|
|
|
|
Type = type; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override object AcceptVisitor(IAstVisitor visitor, object data) { |
|
|
|
public override object AcceptVisitor(IAstVisitor visitor, object data) { |
|
|
|
@ -5717,7 +5692,7 @@ public UsingDeclaration(string @namespace, TypeReference alias) { usings = new L |
|
|
|
|
|
|
|
|
|
|
|
Expression targetObject; |
|
|
|
Expression targetObject; |
|
|
|
|
|
|
|
|
|
|
|
XmlAxisType type; |
|
|
|
XmlAxisType axisType; |
|
|
|
|
|
|
|
|
|
|
|
bool isXmlIdentifier; |
|
|
|
bool isXmlIdentifier; |
|
|
|
|
|
|
|
|
|
|
|
@ -5733,12 +5708,12 @@ public UsingDeclaration(string @namespace, TypeReference alias) { usings = new L |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public XmlAxisType Type { |
|
|
|
public XmlAxisType AxisType { |
|
|
|
get { |
|
|
|
get { |
|
|
|
return type; |
|
|
|
return axisType; |
|
|
|
} |
|
|
|
} |
|
|
|
set { |
|
|
|
set { |
|
|
|
type = value; |
|
|
|
axisType = value; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -5760,9 +5735,11 @@ public UsingDeclaration(string @namespace, TypeReference alias) { usings = new L |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public XmlMemberAccessExpression() { |
|
|
|
public XmlMemberAccessExpression(Expression targetObject, XmlAxisType axisType, string identifier, bool isXmlIdentifier) { |
|
|
|
targetObject = Expression.Null; |
|
|
|
TargetObject = targetObject; |
|
|
|
identifier = ""; |
|
|
|
AxisType = axisType; |
|
|
|
|
|
|
|
Identifier = identifier; |
|
|
|
|
|
|
|
IsXmlIdentifier = isXmlIdentifier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override object AcceptVisitor(IAstVisitor visitor, object data) { |
|
|
|
public override object AcceptVisitor(IAstVisitor visitor, object data) { |
|
|
|
@ -5770,8 +5747,8 @@ public UsingDeclaration(string @namespace, TypeReference alias) { usings = new L |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override string ToString() { |
|
|
|
public override string ToString() { |
|
|
|
return string.Format("[XmlMemberAccessExpression TargetObject={0} Type={1} IsXmlIdentifier={2} Identifi" + |
|
|
|
return string.Format("[XmlMemberAccessExpression TargetObject={0} AxisType={1} IsXmlIdentifier={2} Iden" + |
|
|
|
"er={3}]", TargetObject, Type, IsXmlIdentifier, Identifier); |
|
|
|
"tifier={3}]", TargetObject, AxisType, IsXmlIdentifier, Identifier); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|