-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The case when the lambda function is not declared within a class.
- Loading branch information
1 parent
ab70477
commit 7250b75
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,7 +296,10 @@ internal void BlockGenerated(BoundBlock block) | |
/// <summary> | ||
/// Type of the caller context (the class declaring current method) or null. | ||
/// </summary> | ||
public TypeSymbol CallerType => (_routine is SourceMethodSymbol || _routine is SourceLambdaSymbol) ? _routine.ContainingType : null; | ||
public TypeSymbol CallerType => | ||
(_routine is SourceMethodSymbol) ? _routine.ContainingType : | ||
(_routine is SourceLambdaSymbol) ? _routine.ContainingType as SourceTypeSymbol : | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
roberthusak
Author
Contributor
|
||
null; | ||
|
||
public SourceFileSymbol ContainingFile => _containingFile; | ||
SourceFileSymbol _containingFile; | ||
|
Not correct, would disallow runtime scope change
#96