aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-28 16:25:01 +0800
committerChristian <c@ethdev.com>2014-10-28 16:25:01 +0800
commitfae8ca001ef33041b5ba5debc5a71ecc3eb5645b (patch)
treef92d70422c29f93578a5a2ea30b3f4ba0f3ceb3e /AST.h
parenta29eb889a201e1ce2149aab7bead809e0a37f291 (diff)
downloaddexon-solidity-fae8ca001ef33041b5ba5debc5a71ecc3eb5645b.tar.gz
dexon-solidity-fae8ca001ef33041b5ba5debc5a71ecc3eb5645b.tar.zst
dexon-solidity-fae8ca001ef33041b5ba5debc5a71ecc3eb5645b.zip
Stylistic corrections.
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/AST.h b/AST.h
index db6637ae..5c975ee4 100644
--- a/AST.h
+++ b/AST.h
@@ -191,8 +191,8 @@ public:
bool isTypeGivenExplicitly() const { return bool(m_typeName); }
TypeName* getTypeName() const { return m_typeName.get(); }
- //! Returns the declared or inferred type. Can be an empty pointer if no type was explicitly
- //! declared and there is no assignment to the variable that fixes the type.
+ /// Returns the declared or inferred type. Can be an empty pointer if no type was explicitly
+ /// declared and there is no assignment to the variable that fixes the type.
std::shared_ptr<Type const> const& getType() const { return m_type; }
void setType(std::shared_ptr<Type const> const& _type) { m_type = _type; }
@@ -281,14 +281,14 @@ public:
explicit Statement(Location const& _location): ASTNode(_location) {}
virtual void accept(ASTVisitor& _visitor) override;
- //! Check all type requirements, throws exception if some requirement is not met.
- //! This includes checking that operators are applicable to their arguments but also that
- //! the number of function call arguments matches the number of formal parameters and so forth.
+ /// Check all type requirements, throws exception if some requirement is not met.
+ /// This includes checking that operators are applicable to their arguments but also that
+ /// the number of function call arguments matches the number of formal parameters and so forth.
virtual void checkTypeRequirements() = 0;
protected:
- //! Helper function, check that the inferred type for @a _expression is @a _expectedType or at
- //! least implicitly convertible to @a _expectedType. If not, throw exception.
+ /// Helper function, check that the inferred type for @a _expression is @a _expectedType or at
+ /// least implicitly convertible to @a _expectedType. If not, throw exception.
void expectType(Expression& _expression, Type const& _expectedType);
};
@@ -407,7 +407,7 @@ public:
std::shared_ptr<Type const> const& getType() const { return m_type; }
protected:
- //! Inferred type of the expression, only filled after a call to checkTypeRequirements().
+ /// Inferred type of the expression, only filled after a call to checkTypeRequirements().
std::shared_ptr<Type const> m_type;
};
@@ -532,8 +532,8 @@ private:
ASTPointer<Expression> m_index;
};
-/// Primary expression, i.e. an expression that do not be divided any further like a literal or
-/// a variable reference.
+/// Primary expression, i.e. an expression that cannot be divided any further. Examples are literals
+/// or variable references.
class PrimaryExpression: public Expression
{
public:
@@ -557,7 +557,7 @@ public:
private:
ASTPointer<ASTString> m_name;
- //! Declaration the name refers to.
+ /// Declaration the name refers to.
Declaration* m_referencedDeclaration;
};