Skip to content

Instantly share code, notes, and snippets.

@controlflow
Last active February 22, 2019 17:11
Show Gist options
  • Save controlflow/ba78fc2af0ab1b207347956e52d73fe2 to your computer and use it in GitHub Desktop.
Save controlflow/ba78fc2af0ab1b207347956e52d73fe2 to your computer and use it in GitHub Desktop.
var sourceExpression = DeconstructionUtil.FindExpressionInTuple(infoInExpression);
if (sourceExpression != null && sourceExpression.Value.Indices.Count == 0)
{
namesCollection.Add(sourceExpression.Value.TopmostExpression, new EntryOptions(subrootPolicy: SubrootPolicy.Decompose));
}
var sourceExpression = DeconstructionUtil.FindExpressionInTuple(infoInExpression);
if (sourceExpression is { Indices: { Count: 0 }, TopmostExpression: var topmostExpression })
{
namesCollection.Add(topmostExpression, new EntryOptions(subrootPolicy: SubrootPolicy.Decompose));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment