public static IScriptStatementContext CreateStatement(
            [NotNull] this IScriptBuilder scriptBuilder, bool addStatement)
        {
            CodeContracts.ArgumentNotNull(scriptBuilder, "scriptBuilder");

            var newStatement = new ScriptStatementContext(scriptBuilder, new JavaScriptStatement());

            if (addStatement)
            {
                scriptBuilder.Statements.Add(newStatement.ScriptStatement);
            }

            return(newStatement);
        }
    public static IScriptStatementContext CreateStatement(
      [NotNull] this IScriptBuilder scriptBuilder, bool addStatement)
    {
      CodeContracts.ArgumentNotNull(scriptBuilder, "scriptBuilder");

      var newStatement = new ScriptStatementContext(scriptBuilder, new JavaScriptStatement());

      if (addStatement)
      {
        scriptBuilder.Statements.Add(newStatement.ScriptStatement);
      }

      return newStatement;
    }