Esempio n. 1
0
 /// <summary>
 ///     Whether the given symbol needs to be defined in this context.
 ///     This is the case if the symbol is contained in the source/assembly, or
 ///     of the symbol is a constructed generic.
 /// </summary>
 /// <param name="symbol">The symbol to populate.</param>
 public bool Defines(ISymbol symbol) => !Equals(symbol, symbol.OriginalDefinition) || Scope.InScope(symbol);
Esempio n. 2
0
 /// <summary>
 ///     Whether the given symbol needs to be defined in this context.
 ///     This is the case if the symbol is contained in the source/assembly, or
 ///     of the symbol is a constructed generic.
 /// </summary>
 /// <param name="symbol">The symbol to populate.</param>
 public bool Defines(ISymbol symbol) =>
 !SymbolEqualityComparer.Default.Equals(symbol, symbol.OriginalDefinition) ||
 Scope.InScope(symbol);