Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sanitized visitors (using IsNull property over internal classname check)

  • Loading branch information...
commit ea1b2a9b81fdf5d537f09ca7bf5934180f2d9b68 1 parent d15da9b
@WolfgangSt WolfgangSt authored
View
2  IIS.SLSharp/Translation/GLSL/GlslVisitor.cs
@@ -436,7 +436,7 @@ public override StringBuilder VisitIfElseStatement(IfElseStatement ifElseStateme
result.Append(Indent(trueSection, trueSection.AcceptVisitor(this, data)));
var elseSection = ifElseStatement.FalseStatement;
- if (elseSection.GetType().FullName != "ICSharpCode.NRefactory.CSharp.Statement+NullStatement")
+ if (!elseSection.IsNull)
{
result.Append(Environment.NewLine + "else");
result.Append(Indent(elseSection, elseSection.AcceptVisitor(this, data)));
View
2  IIS.SLSharp/Translation/HLSL/HlslVisitor.cs
@@ -480,7 +480,7 @@ public override StringBuilder VisitIfElseStatement(IfElseStatement ifElseStateme
result.Append(Indent(trueSection, trueSection.AcceptVisitor(this, data)));
var elseSection = ifElseStatement.FalseStatement;
- if (elseSection.GetType().FullName != "ICSharpCode.NRefactory.CSharp.Statement+NullStatement")
+ if (!elseSection.IsNull)
{
result.Append(Environment.NewLine + "else");
result.Append(Indent(elseSection, elseSection.AcceptVisitor(this, data)));
Please sign in to comment.
Something went wrong with that request. Please try again.