mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Teach the AST verifier not to deserialize generic environments.
The AST verifier was causing deserialization of generic environments, which slows things down considerably and affects our ability to test for laziness in deserialization. Prevent it from doing so---and only do the extra checkig if something else deserialized the generic environment already. ... except there are some cases where it happens through means that are harder to control (e.g., the AST walker for patterns) that need more thought.
This commit is contained in:
@@ -312,6 +312,10 @@ public:
|
||||
/// of its parents.
|
||||
GenericEnvironment *getGenericEnvironmentOfContext() const;
|
||||
|
||||
/// Whether the context has a generic environment that will be constructed
|
||||
/// on first access (but has not yet been constructed).
|
||||
bool contextHasLazyGenericEnvironment() const;
|
||||
|
||||
/// Map an interface type to a contextual type within this context.
|
||||
Type mapTypeIntoContext(Type type) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user