Skip to content

Commit fbe8cdd

Browse files
committed
Предупреждение про затенение методов базовых классов
1 parent 32cc6fa commit fbe8cdd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ScriptEngine/Machine/Contexts/ScriptDrivenObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public override BslMethodInfo GetMethodInfo(int methodNumber)
368368
}
369369
}
370370

371-
public void CallAsProcedure(int methodNumber, IValue[] arguments, IBslProcess process)
371+
public override void CallAsProcedure(int methodNumber, IValue[] arguments, IBslProcess process)
372372
{
373373
if (MethodDefinedInScript(methodNumber))
374374
{
@@ -380,7 +380,7 @@ public void CallAsProcedure(int methodNumber, IValue[] arguments, IBslProcess pr
380380
}
381381
}
382382

383-
public void CallAsFunction(int methodNumber, IValue[] arguments, out IValue retValue, IBslProcess process)
383+
public override void CallAsFunction(int methodNumber, IValue[] arguments, out IValue retValue, IBslProcess process)
384384
{
385385
if (MethodDefinedInScript(methodNumber))
386386
{

src/ScriptEngine/Machine/EvalExecLocalScope.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ This Source Code Form is subject to the terms of the
1212

1313
namespace ScriptEngine.Machine
1414
{
15-
internal class EvalExecLocalScope : ScriptDrivenObject
15+
internal class EvalExecLocalScope : ScriptDrivenObject, IAttachableContext
1616
{
1717
public EvalExecLocalScope(IExecutableModule module) : base(module, false)
1818
{
1919
}
2020

21-
public void OnAttach(out IVariable[] variables, out BslMethodInfo[] methods)
21+
void IAttachableContext.OnAttach(out IVariable[] variables, out BslMethodInfo[] methods)
2222
{
2323
variables = Array.Empty<IVariable>();
2424
methods = Array.Empty<BslMethodInfo>();

0 commit comments

Comments
 (0)