mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Style.
This commit is contained in:
parent
f4d1acc563
commit
92eb04c6ec
10
AST.h
10
AST.h
@ -524,11 +524,11 @@ protected:
|
|||||||
Visibility getDefaultVisibility() const override { return Visibility::Internal; }
|
Visibility getDefaultVisibility() const override { return Visibility::Internal; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ASTPointer<TypeName> m_typeName; ///< can be empty ("var")
|
ASTPointer<TypeName> m_typeName; ///< can be empty ("var")
|
||||||
ASTPointer<Expression> m_value; ///< the assigned value, can be missing
|
ASTPointer<Expression> m_value; ///< the assigned value, can be missing
|
||||||
bool m_isStateVariable; ///< Whether or not this is a contract state variable
|
bool m_isStateVariable; ///< Whether or not this is a contract state variable
|
||||||
bool m_isIndexed; ///< Whether this is an indexed variable (used by events).
|
bool m_isIndexed; ///< Whether this is an indexed variable (used by events).
|
||||||
bool m_isConstant; ///< Whether the variable is a compile-time constant.
|
bool m_isConstant; ///< Whether the variable is a compile-time constant.
|
||||||
Location m_location; ///< Location of the variable if it is of reference type.
|
Location m_location; ///< Location of the variable if it is of reference type.
|
||||||
|
|
||||||
std::shared_ptr<Type const> m_type; ///< derived type, initially empty
|
std::shared_ptr<Type const> m_type; ///< derived type, initially empty
|
||||||
|
13
Parser.cpp
13
Parser.cpp
@ -394,9 +394,16 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(
|
|||||||
nodeFactory.setEndPositionFromNode(value);
|
nodeFactory.setEndPositionFromNode(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nodeFactory.createNode<VariableDeclaration>(type, identifier, value,
|
return nodeFactory.createNode<VariableDeclaration>(
|
||||||
visibility, _options.isStateVariable,
|
type,
|
||||||
isIndexed, isDeclaredConst, location);
|
identifier,
|
||||||
|
value,
|
||||||
|
visibility,
|
||||||
|
_options.isStateVariable,
|
||||||
|
isIndexed,
|
||||||
|
isDeclaredConst,
|
||||||
|
location
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
ASTPointer<ModifierDefinition> Parser::parseModifierDefinition()
|
ASTPointer<ModifierDefinition> Parser::parseModifierDefinition()
|
||||||
|
Loading…
Reference in New Issue
Block a user