Пример #1
0
        /// <summary>
        /// Generates the code for a JumpLabel node.
        /// </summary>
        /// <param name="jl">The JumpLabel node.</param>
        /// <returns>String containing C# code for JumpLabel jl.</returns>
        private string GenerateJumpLabel(JumpLabel jl)
        {
            string labelStatement;

            if (m_insertCoopTerminationChecks)
                labelStatement = m_coopTerminationCheck;
            else
                labelStatement = "NoOp();";

            return GenerateLine(String.Format("{0}: {1}", CheckName(jl.LabelName), labelStatement), jl);
        }
Пример #2
0
 /// <summary>
 /// Generates the code for a JumpLabel node.
 /// </summary>
 /// <param name="jl">The JumpLabel node.</param>
 /// <returns>String containing C# code for JumpLabel jl.</returns>
 private string GenerateJumpLabel(JumpLabel jl)
 {
     return Generate(String.Format("{0}:", CheckName(jl.LabelName)), jl) + " NoOp();\n";
 }
Пример #3
0
        /// <summary>
        /// Generates the code for a JumpLabel node.
        /// </summary>
        /// <param name="jl">The JumpLabel node.</param>
        /// <returns>String containing C# code for JumpLabel jl.</returns>
        private string GenerateJumpLabel(JumpLabel jl)
        {
            string labelStatement;

            if (m_insertCoopTerminationChecks)
                labelStatement = m_coopTerminationCheck + "\n";
            else
                labelStatement = "NoOp();\n";

            return Generate(String.Format("{0}: ", CheckName(jl.LabelName)), jl) + labelStatement;
        }
Пример #4
0
 public  Statement (Parser yyp, JumpLabel  jl ):base(((LSLSyntax
)yyp)){ kids . Add ( jl );
}