Временно закомментировал вычисление здоровья кода после запуска
This commit is contained in:
parent
76954d1cb8
commit
2dcce6285c
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
|||
public const string Major = "3";
|
||||
public const string Minor = "7";
|
||||
public const string Build = "1";
|
||||
public const string Revision = "2732";
|
||||
public const string Revision = "2733";
|
||||
|
||||
public const string MainVersion = Major + "." + Minor;
|
||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%COREVERSION%=1
|
||||
%REVISION%=2732
|
||||
%MINOR%=7
|
||||
%REVISION%=2733
|
||||
%COREVERSION%=1
|
||||
%MAJOR%=3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.7.1.2732
|
||||
3.7.1.2733
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
!define VERSION '3.7.1.2732'
|
||||
!define VERSION '3.7.1.2733'
|
||||
|
|
|
|||
|
|
@ -840,7 +840,7 @@ namespace VisualPascalABC
|
|||
private void StartMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
WorkbenchServiceFactory.RunService.Run(true);
|
||||
if (VisualEnvironmentCompiler.Compiler != null && VisualEnvironmentCompiler.Compiler.ErrorsList.Count == 0)
|
||||
/*if (VisualEnvironmentCompiler.Compiler != null && VisualEnvironmentCompiler.Compiler.ErrorsList.Count == 0)
|
||||
{
|
||||
var Percent = VisualEnvironmentCompiler.Compiler.PABCCodeHealth;
|
||||
if (Percent > 0)
|
||||
|
|
@ -856,33 +856,7 @@ namespace VisualPascalABC
|
|||
var PM100 = 100 - Percent;
|
||||
HealthLabel.BackColor = Color.FromArgb(c.R - PM100 - 20, c.G - PM100 - 20, c.B - PM100 - 20);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*if (VisualEnvironmentCompiler.StandartCompiler != null &&
|
||||
VisualEnvironmentCompiler.StandartCompiler.LinesCompiled > 1000)
|
||||
return;
|
||||
var root = VisualEnvironmentCompiler?.StandartCompiler?.CurrentCompilationUnit?.SyntaxTree;
|
||||
|
||||
if (root == null)
|
||||
return;
|
||||
if (VisualEnvironmentCompiler.StandartCompiler.CurrentCompilationUnit.SemanticTree == null)
|
||||
return;
|
||||
var stat = new SyntaxVisitors.ABCStatisticsVisitor();
|
||||
stat.ProcessNode(root);
|
||||
var Percent = stat.CalcHealth(out int n, out int p);
|
||||
|
||||
if (Percent >= 100)
|
||||
{
|
||||
HealthLabel.Text = "";
|
||||
return;
|
||||
}
|
||||
HealthLabel.Text = $"{Percent}%";
|
||||
|
||||
var c = SystemColors.Control;
|
||||
var PM100 = 100 - Percent;
|
||||
HealthLabel.BackColor = Color.FromArgb(c.R - PM100 - 20, c.G - PM100 - 20, c.B - PM100 - 20);
|
||||
*/
|
||||
}*/
|
||||
}
|
||||
|
||||
private void Form1_KeyUp(object sender, KeyEventArgs e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue