Skip to content

Commit 3262cf9

Browse files
committed
поправки по замечаниям
1 parent a13d2fe commit 3262cf9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/OneScript.Core/Contexts/ClassBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ private static bool MarkedAsContextMethod(MemberInfo member, bool includeDepreca
111111
.Any(x => includeDeprecations || (x as ContextMethodAttribute)?.IsDeprecated == false);
112112
}
113113

114-
private static bool MarkedAsContextProperty(MemberInfo member, bool includeDeprecations = false)
114+
private static bool MarkedAsContextProperty(PropertyInfo member, bool includeDeprecations = false)
115115
{
116-
return member.GetCustomAttributes(typeof(ContextPropertyAttribute), false).Length != 0;
116+
return member.GetCustomAttributes(typeof(ContextPropertyAttribute), false)
117+
.Any(x => includeDeprecations || (x as ContextPropertyAttribute)?.IsDeprecated == false);
117118
}
118119

119120
public ClassBuilder ExportConstructor(MethodInfo info)

src/ScriptEngine/Machine/MachineInstance.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ This Source Code Form is subject to the terms of the
2424
using OneScript.Values;
2525
using ScriptEngine.Compiler;
2626
using ScriptEngine.Machine.Debugger;
27-
using System.Dynamic;
2827

2928
namespace ScriptEngine.Machine
3029
{

src/oscript/Web/Multipart/BinaryStreamStack.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public byte[] ReadByteLine(out bool hitStreamEnd)
295295
while (amountRead == 0)
296296
{
297297
streams.Pop();
298-
if (!streams.Any())
298+
if (streams.Count == 0)
299299
{
300300
hitStreamEnd = true;
301301
return builder.ToArray();

0 commit comments

Comments
 (0)