/// <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);
/// <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);