Fix some doc comments

This commit is contained in:
nikic 2012-08-02 17:01:33 +02:00
parent a590937fdf
commit 8d218110db
8 changed files with 14 additions and 14 deletions

View File

@ -47,7 +47,7 @@ class #(-p)
, "???"
);
/* @var Map which translates lexer tokens to internal tokens */
/* @var array Map which translates lexer tokens to internal tokens */
protected static $translate = array(
#listvar yytranslate
);

View File

@ -46,7 +46,7 @@ class PHPParser_Comment
/**
* Sets the line number the comment started on.
*
* @param int Line number
* @param int $line Line number
*/
public function setLine($line) {
$this->line = $line;

View File

@ -2,7 +2,7 @@
/**
* @property PHPParser_Node[] $stmts Statements
* @property PHPParser_Node_Stmt_FuncParam[] $params Parameters
* @property PHPParser_Node_Param[] $params Parameters
* @property PHPParser_Node_Expr_ClosureUse[] $uses use()s
* @property bool $byRef Whether to return by reference
* @property bool $static Whether the closure is static

View File

@ -1,7 +1,7 @@
<?php
/**
* @property double $value Number value
* @property float $value Number value
*/
class PHPParser_Node_Scalar_DNumber extends PHPParser_Node_Scalar
{

View File

@ -1,15 +1,15 @@
<?php
/**
* @property PHPParser_Node_Stmts_StaticVar[] $vars Variable definitions
* @property PHPParser_Node_Stmt_StaticVar[] $vars Variable definitions
*/
class PHPParser_Node_Stmt_Static extends PHPParser_Node_Stmt
{
/**
* Constructs a static variables list node.
*
* @param PHPParser_Node_Stmts_StaticVar[] $vars Variable definitions
* @param array $attributes Additional attributes
* @param PHPParser_Node_Stmt_StaticVar[] $vars Variable definitions
* @param array $attributes Additional attributes
*/
public function __construct(array $vars, array $attributes = array()) {
parent::__construct(

View File

@ -1,17 +1,17 @@
<?php
/**
* @property PHPParser_Node_Name[] $traits Traits
* @property PHPParser_Node_TraitUseAdaptation[] $adaptations Adaptations
* @property PHPParser_Node_Name[] $traits Traits
* @property PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations
*/
class PHPParser_Node_Stmt_TraitUse extends PHPParser_Node_Stmt
{
/**
* Constructs a trait use node.
*
* @param PHPParser_Node_Name[] $traits Traits
* @param PHPParser_Node_TraitUseAdaptation[] $adaptations Adaptations
* @param array $attributes Additional attributes
* @param PHPParser_Node_Name[] $traits Traits
* @param PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations
* @param array $attributes Additional attributes
*/
public function __construct(array $traits, array $adaptations = array(), array $attributes = array()) {
parent::__construct(

View File

@ -2,7 +2,7 @@
/**
* @property PHPParser_Node_Expr $cond Condition
* @property PHPParsre_Node[] $stmts Statements
* @property PHPParser_Node[] $stmts Statements
*/
class PHPParser_Node_Stmt_While extends PHPParser_Node_Stmt
{

View File

@ -308,7 +308,7 @@ class PHPParser_Parser
, "???"
);
/* @var Map which translates lexer tokens to internal tokens */
/* @var array Map which translates lexer tokens to internal tokens */
protected static $translate = array(
0, 149, 149, 149, 149, 149, 149, 149, 149, 149,
149, 149, 149, 149, 149, 149, 149, 149, 149, 149,