Extract typing.

This commit is contained in:
Daniel Kirchner
2020-04-14 10:59:28 +02:00
parent accd8d7667
commit 3af43fd350
25 changed files with 461 additions and 340 deletions
+5
View File
@@ -154,6 +154,11 @@ private:
/// @returns the referenced declaration and throws on error.
Declaration const& dereference(UserDefinedTypeName const& _typeName) const;
std::vector<Declaration const*> cleanOverloadedDeclarations(
Identifier const& _reference,
std::vector<Declaration const*> const& _candidates
);
/// Runs type checks on @a _expression to infer its type and then checks that it is implicitly
/// convertible to @a _expectedType.
bool expectType(Expression const& _expression, Type const& _expectedType);