public override IDeclaration?FindDeclaration(S.SyntaxNode expression) { switch (expression) { case S.TypeSpecifier expr: return(FindDeclarationCore(expr)); case S.AccessExpression expr: return(FindDeclarationCore(expr)); case S.Identifier expr: return(FindDeclarationCore(expr)); default: Error(DiagnosticCode.InvalidTypeSpecifier, expression.Location); return(null); } }
public abstract IDeclaration?FindDeclaration(S.SyntaxNode expression);
public override IDeclaration?FindDeclaration(S.SyntaxNode expr) => Parent?.FindDeclaration(expr);