mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Comments and warnings.
This commit is contained in:
parent
c8b03c51a0
commit
39c471f332
@ -631,6 +631,8 @@ ASTPointer<Statement> Parser::parseSimpleStatement()
|
|||||||
return parseVariableDeclarationStatement();
|
return parseVariableDeclarationStatement();
|
||||||
case LookAheadInfo::ExpressionStatement:
|
case LookAheadInfo::ExpressionStatement:
|
||||||
return parseExpressionStatement();
|
return parseExpressionStatement();
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// At this point, we have '(Identifier|ElementaryTypeName) "["'.
|
// At this point, we have '(Identifier|ElementaryTypeName) "["'.
|
||||||
|
2
Parser.h
2
Parser.h
@ -108,7 +108,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// Performs limited look-ahead to distinguish between variable declaration and expression statement.
|
/// 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.
|
/// decide with constant look-ahead.
|
||||||
LookAheadInfo peekStatementType() const;
|
LookAheadInfo peekStatementType() const;
|
||||||
/// Returns a typename parsed in look-ahead fashion from something like "a[8][2**70]".
|
/// Returns a typename parsed in look-ahead fashion from something like "a[8][2**70]".
|
||||||
|
2
Types.h
2
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>[]).
|
* and dynamically-sized array (<type>[]).
|
||||||
*/
|
*/
|
||||||
class ArrayType: public Type
|
class ArrayType: public Type
|
||||||
|
Loading…
Reference in New Issue
Block a user