From 80b7182dc10c4567f619871bd73eb240cb065f84 Mon Sep 17 00:00:00 2001 From: Mikhalkovich Stanislav Date: Wed, 19 Feb 2025 11:50:00 +0300 Subject: [PATCH] _ in names --- Compiler/Compiler.cs | 2 +- TreeConverter/TreeConversion/syntax_tree_visitor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Compiler/Compiler.cs b/Compiler/Compiler.cs index 27ca268eb..454d633b6 100644 --- a/Compiler/Compiler.cs +++ b/Compiler/Compiler.cs @@ -3311,7 +3311,7 @@ namespace PascalABCCompiler // Это только для локального компилятора? var stat = new SyntaxVisitors.ABCStatisticsVisitor(); stat.ProcessNode(unitSyntaxTree); - pABCCodeHealth = stat.CalcHealth(out int _, out int _); + pABCCodeHealth = stat.CalcHealth(out int aaa, out int bbb); } private SyntaxTree.compilation_unit InternalParseText(ILanguage language, string fileName, string text, List errorList, List warnings, List definesList = null, bool calculateHealth = true) diff --git a/TreeConverter/TreeConversion/syntax_tree_visitor.cs b/TreeConverter/TreeConversion/syntax_tree_visitor.cs index 4fd3d53ba..afae9d566 100644 --- a/TreeConverter/TreeConversion/syntax_tree_visitor.cs +++ b/TreeConverter/TreeConversion/syntax_tree_visitor.cs @@ -12942,7 +12942,7 @@ namespace PascalABCCompiler.TreeConverter if (context.top_function.return_value_type == null || context.top_function.return_value_type == SystemLibrary.SystemLibrary.void_type) AddError(get_location(attr), "EXPECTED_RETURN_VALUE_FOR_ATTRIBUTE"); throw new NotSupportedError(get_location(attr.qualifier)); - qualifier = SemanticTree.attribute_qualifier_kind.return_kind; + // qualifier = SemanticTree.attribute_qualifier_kind.return_kind; } else throw new NotSupportedError(get_location(attr.qualifier));