Browse Source

Corrected doxygen post comments.

cl-refactor
Christian 10 years ago
parent
commit
0c88f03204
  1. 4
      libsolidity/AST.h
  2. 12
      libsolidity/Compiler.h

4
libsolidity/AST.h

@ -345,7 +345,7 @@ public:
private: private:
ASTPointer<Expression> m_condition; ASTPointer<Expression> m_condition;
ASTPointer<Statement> m_trueBody; ASTPointer<Statement> m_trueBody;
ASTPointer<Statement> m_falseBody; //< "else" part, optional ASTPointer<Statement> m_falseBody; ///< "else" part, optional
}; };
/** /**
@ -400,7 +400,7 @@ public:
void setFunctionReturnParameters(ParameterList& _parameters) { m_returnParameters = &_parameters; } void setFunctionReturnParameters(ParameterList& _parameters) { m_returnParameters = &_parameters; }
private: private:
ASTPointer<Expression> m_expression; //< value to return, optional ASTPointer<Expression> m_expression; ///< value to return, optional
/// Pointer to the parameter list of the function, filled by the @ref NameAndTypeResolver. /// Pointer to the parameter list of the function, filled by the @ref NameAndTypeResolver.
ParameterList* m_returnParameters; ParameterList* m_returnParameters;

12
libsolidity/Compiler.h

@ -38,10 +38,10 @@ class AssemblyItem
public: public:
enum class Type enum class Type
{ {
CODE, //< m_data is opcode, m_label is empty. CODE, ///< m_data is opcode, m_label is empty.
DATA, //< m_data is actual data, m_label is empty DATA, ///< m_data is actual data, m_label is empty
LABEL, //< m_data is JUMPDEST opcode, m_label is id of label LABEL, ///< m_data is JUMPDEST opcode, m_label is id of label
LABELREF //< m_data is empty, m_label is id of label LABELREF ///< m_data is empty, m_label is id of label
}; };
explicit AssemblyItem(eth::Instruction _instruction) : m_type(Type::CODE), m_data(byte(_instruction)) {} explicit AssemblyItem(eth::Instruction _instruction) : m_type(Type::CODE), m_data(byte(_instruction)) {}
@ -59,8 +59,8 @@ private:
AssemblyItem(Type _type, byte _data, uint32_t _label): m_type(_type), m_data(_data), m_label(_label) {} AssemblyItem(Type _type, byte _data, uint32_t _label): m_type(_type), m_data(_data), m_label(_label) {}
Type m_type; Type m_type;
byte m_data; //< data to be written to the bytecode stream (or filled by a label if this is a LABELREF) byte m_data; ///< data to be written to the bytecode stream (or filled by a label if this is a LABELREF)
uint32_t m_label; //< the id of a label either referenced or defined by this item uint32_t m_label; ///< the id of a label either referenced or defined by this item
}; };
using AssemblyItems = std::vector<AssemblyItem>; using AssemblyItems = std::vector<AssemblyItem>;

Loading…
Cancel
Save