Created
December 12, 2019 00:23
-
-
Save controlflow/bc8b7078cc55570a1270f798be1a47b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var localFunctionDeclaration = declarationStatement.LocalFunctionDeclaration; | |
if (localFunctionDeclaration != null) | |
consumer.Add(localFunctionDeclaration.DeclaredElement); |
This file contains hidden or 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
if (declarationStatement.LocalFunctionDeclaration is { DeclaredElement: var function }) | |
consumer.Add(function); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment