Browse Source

Comments and warnings.

cl-refactor
Christian 10 years ago
parent
commit
ccc1d974d1
  1. 2
      libsolidity/Parser.cpp
  2. 2
      libsolidity/Parser.h
  3. 2
      libsolidity/Types.h

2
libsolidity/Parser.cpp

@ -631,6 +631,8 @@ ASTPointer<Statement> Parser::parseSimpleStatement()
return parseVariableDeclarationStatement();
case LookAheadInfo::ExpressionStatement:
return parseExpressionStatement();
default:
break;
}
// At this point, we have '(Identifier|ElementaryTypeName) "["'.

2
libsolidity/Parser.h

@ -108,7 +108,7 @@ private:
};
/// Performs limited look-ahead to distinguish between variable declaration and expression statement.
/// For source code of the form "a[][8]" ("IndexAccessStructure"), this it is not possible to
/// For source code of the form "a[][8]" ("IndexAccessStructure"), this is not possible to
/// decide with constant look-ahead.
LookAheadInfo peekStatementType() const;
/// Returns a typename parsed in look-ahead fashion from something like "a[8][2**70]".

2
libsolidity/Types.h

@ -279,7 +279,7 @@ public:
};
/**
* The type of an array, the flavours are byte array (bytes), statically- (<type>[<length>])
* The type of an array. The flavours are byte array (bytes), statically- (<type>[<length>])
* and dynamically-sized array (<type>[]).
*/
class ArrayType: public Type

Loading…
Cancel
Save