Sha256: 0da25734b1ff0d2711a1c605a58b934bb50822bc186cd6abc0f57ac5803da22e

Contents?: true

Size: 606 Bytes

Versions: 10

Compression:

Stored size: 606 Bytes

Contents

<?php

namespace CoffeeScript;

class yy_Comment extends yy_Base
{
  function constructor()
  {
    list($comment) = args(func_get_args(), 1);

    $this->comment = $comment;

    return $this;
  }

  function compile_node($options, $level = NULL)
  {
    $code = '/*'.multident($this->comment, $this->tab)."\n{$this->tab}*/\n";

    if ($level === LEVEL_TOP || $options['level'] === LEVEL_TOP)
    {
      $code = $options['indent'].$code;
    }

    return $code;
  }

  function is_statement($options = NULL)
  {
    return TRUE;
  }

  function make_return($res = NULL)
  {
    return $this;
  }
}

?>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.3.1 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.3.0 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.2.5 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.2.4 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.2.3 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.2.2 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.2.1 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.2.0 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php
guard-mthaml-0.1.0 vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php