Exemple #1
0
            public override void Emit(CompilationContext ctx)
            {
                //That showoffy jerk Donald Knuth just *had* to put a quote in a
                //multiline comment so now I have to fix those up too.
                var fixedUp = StatementText.Replace("\"", "\\\"").Replace("\r\n", "\" + \r\n\"");

                ctx.EmitRaw("Lib.Fail(\"" + LineNumber.ToString() + " * " + fixedUp);
                ctx.EmitRaw("\");\n");
            }
Exemple #2
0
 public override int GetHashCode()
 {
     return(StatementText.GetHashCode());
 }