Skip to content

Commit d340092

Browse files
author
Neal Gafter
authored
Clean up some dead comments. (#40661)
1 parent e05ed13 commit d340092

File tree

1 file changed

+1
-43
lines changed

1 file changed

+1
-43
lines changed

src/Compilers/CSharp/Portable/Binder/TypeofBinder.cs

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -28,56 +28,14 @@ internal TypeofBinder(ExpressionSyntax typeExpression, Binder next)
2828
OpenTypeVisitor.Visit(typeExpression, out _allowedMap, out _isTypeExpressionOpen);
2929
}
3030

31-
internal bool IsTypeExpressionOpen { get { return _isTypeExpressionOpen; } }
31+
internal bool IsTypeExpressionOpen => _isTypeExpressionOpen;
3232

3333
protected override bool IsUnboundTypeAllowed(GenericNameSyntax syntax)
3434
{
3535
bool allowed;
3636
return _allowedMap != null && _allowedMap.TryGetValue(syntax, out allowed) && allowed;
3737
}
3838

39-
/////// <summary>
40-
/////// Returns the list of the symbols which represent the argument of the nameof operator. Ambiguities are not an error for the nameof.
41-
/////// </summary>
42-
////internal ImmutableArray<Symbol> LookupForNameofArgument(ExpressionSyntax left, IdentifierNameSyntax right, string name, DiagnosticBag diagnostics, bool isAliasQualified, out bool hasErrors)
43-
////{
44-
//// ArrayBuilder<Symbol> symbols = ArrayBuilder<Symbol>.GetInstance();
45-
//// Symbol container = null;
46-
//// hasErrors = false;
47-
48-
//// // We treat the AliasQualified syntax different than the rest. We bind the whole part for the alias.
49-
//// if (isAliasQualified)
50-
//// {
51-
//// container = BindNamespaceAliasSymbol((IdentifierNameSyntax)left, diagnostics);
52-
//// var aliasSymbol = container as AliasSymbol;
53-
//// if (aliasSymbol != null) container = aliasSymbol.Target;
54-
//// if (container.Kind == SymbolKind.NamedType)
55-
//// {
56-
//// diagnostics.Add(ErrorCode.ERR_ColColWithTypeAlias, left.Location, left);
57-
//// hasErrors = true;
58-
//// return symbols.ToImmutableAndFree();
59-
//// }
60-
//// }
61-
//// // If it isn't AliasQualified, we first bind the left part, and then bind the right part as a simple name.
62-
//// else if (left != null)
63-
//// {
64-
//// // We use OriginalDefinition because of the unbound generic names such as List<>, Dictionary<,>.
65-
//// container = BindNamespaceOrTypeSymbol(left, diagnostics, null, false).OriginalDefinition;
66-
//// }
67-
68-
//// this.BindNonGenericSimpleName(right, diagnostics, null, false, (NamespaceOrTypeSymbol)container, isNameofArgument: true, symbols: symbols);
69-
//// if (CheckUsedBeforeDeclarationIfLocal(symbols, right))
70-
//// {
71-
//// Error(diagnostics, ErrorCode.ERR_VariableUsedBeforeDeclaration, right, right);
72-
//// hasErrors = true;
73-
//// }
74-
//// else if (symbols.Count == 0)
75-
//// {
76-
//// hasErrors = true;
77-
//// }
78-
//// return symbols.ToImmutableAndFree();
79-
////}
80-
8139
/// <summary>
8240
/// This visitor walks over a type expression looking for open types.
8341
/// Open types are allowed if an only if:

0 commit comments

Comments
 (0)