mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Pointer type cleanup: Use ASTPointer only for AST nodes and shared_ptr for type
pointer.
This commit is contained in:
parent
ee06ed2ff8
commit
c24fa78b21
@ -41,7 +41,7 @@ namespace
|
||||
void parseTextAndResolveNames(const std::string& _source)
|
||||
{
|
||||
Parser parser;
|
||||
ptr<ContractDefinition> contract = parser.parse(
|
||||
ASTPointer<ContractDefinition> contract = parser.parse(
|
||||
std::make_shared<Scanner>(CharStream(_source)));
|
||||
NameAndTypeResolver resolver;
|
||||
resolver.resolveNamesAndTypes(*contract);
|
||||
|
@ -37,7 +37,7 @@ namespace test
|
||||
|
||||
namespace
|
||||
{
|
||||
ptr<ASTNode> parseText(const std::string& _source)
|
||||
ASTPointer<ASTNode> parseText(const std::string& _source)
|
||||
{
|
||||
Parser parser;
|
||||
return parser.parse(std::make_shared<Scanner>(CharStream(_source)));
|
||||
|
Loading…
Reference in New Issue
Block a user