mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 23:12:39 +00:00
Make NamedEntityInterface non-movable (#946)
This commit is contained in:
1 parent
e8d9b7675b
commit
a9bb06ca14
10 files changed
+82
-61
No files matched your search
@@ -335,7 +335,7 @@ class TypeType : public Value {
|
||||
// A function type.
|
||||
class FunctionType : public Value {
|
||||
public:
|
||||
FunctionType(std::vector<GenericBinding> deduced,
|
||||
FunctionType(std::vector<Nonnull<const GenericBinding*>> deduced,
|
||||
Nonnull<const Value*> parameters,
|
||||
Nonnull<const Value*> return_type)
|
||||
: Value(Kind::FunctionType),
|
||||
@@ -347,12 +347,14 @@ class FunctionType : public Value {
|
||||
return value->kind() == Kind::FunctionType;
|
||||
}
|
||||
|
||||
auto deduced() const -> llvm::ArrayRef<GenericBinding> { return deduced_; }
|
||||
auto deduced() const -> llvm::ArrayRef<Nonnull<const GenericBinding*>> {
|
||||
return deduced_;
|
||||
}
|
||||
auto parameters() const -> const Value& { return *parameters_; }
|
||||
auto return_type() const -> const Value& { return *return_type_; }
|
||||
|
||||
private:
|
||||
std::vector<GenericBinding> deduced_;
|
||||
std::vector<Nonnull<const GenericBinding*>> deduced_;
|
||||
Nonnull<const Value*> parameters_;
|
||||
Nonnull<const Value*> return_type_;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user