From a99852084ff6f0491734d508a4dcd2e7d8411814 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 06:04:11 +0000 Subject: feat(classes): warn when method declarations shadow fields Retain parameter source lines for warnings and preserve field access prefix validation when distinguishing fields from methods. Co-Authored-By: Claude Fable 5.1 --- lib/Parser/ParserFunction.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Parser/ParserFunction.cc') diff --git a/lib/Parser/ParserFunction.cc b/lib/Parser/ParserFunction.cc index 1aef756..ad187c8 100644 --- a/lib/Parser/ParserFunction.cc +++ b/lib/Parser/ParserFunction.cc @@ -51,6 +51,7 @@ std::optional> Parser::ParsePrototypeArgs(bool AllowByRef return std::nullopt; } ParamDecl P; + P.Line = Lex.getLine(); P.Name = Lex.IdentifierStr; P.Mode = Current; getNextToken(); -- cgit v1.3.1-4-g156e