UsesPath перенёс в TreeHelper.cs т.к. Tree/cs перегенерируется автоматически

This commit is contained in:
Mikhalkovich Stanislav 2021-03-21 21:17:21 +03:00
parent 734bbc060f
commit 68e50baf9d
7 changed files with 15 additions and 9 deletions

View file

@ -15,7 +15,7 @@ internal static class RevisionClass
public const string Major = "3";
public const string Minor = "8";
public const string Build = "0";
public const string Revision = "2863";
public const string Revision = "2864";
public const string MainVersion = Major + "." + Minor;
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;

View file

@ -1,4 +1,4 @@
%MINOR%=8
%REVISION%=2863
%COREVERSION%=0
%REVISION%=2864
%MINOR%=8
%MAJOR%=3

Binary file not shown.

View file

@ -1 +1 @@
3.8.0.2863
3.8.0.2864

View file

@ -1 +1 @@
!define VERSION '3.8.0.2863'
!define VERSION '3.8.0.2864'

View file

@ -11288,9 +11288,6 @@ namespace PascalABCCompiler.SyntaxTree
}
}
// имя модуля в случае обычного uses
// или путь к модулю в случае uses-in
public virtual string UsesPath() => name.idents[0].name;
/// <summary> Создает копию узла </summary>
public override syntax_tree_node Clone()
@ -11461,7 +11458,6 @@ namespace PascalABCCompiler.SyntaxTree
}
}
public override string UsesPath() => in_file.Value;
/// <summary> Создает копию узла </summary>
public override syntax_tree_node Clone()

View file

@ -941,6 +941,9 @@ namespace PascalABCCompiler.SyntaxTree
{
this.name = new ident_list(name, sc);
}
// имя модуля в случае обычного uses
// или путь к модулю в случае uses-in
public virtual string UsesPath() => name.idents[0].name;
}
public partial class uses_list
@ -2033,6 +2036,11 @@ namespace PascalABCCompiler.SyntaxTree
public object ext = null;
}
public partial class uses_unit_in
{
public override string UsesPath() => in_file.Value;
}
public class ident_or_list // Это для распаковки параметров в лямбдах \(x,y)
{
// только одно поле - ненулевое!
@ -2048,4 +2056,6 @@ namespace PascalABCCompiler.SyntaxTree
}
}
}