Skip to content

Commit

Permalink
ezr² v0.8.3
Browse files Browse the repository at this point in the history
- Fixed warning in `EzrObject` caused by missing `DynamicallyAccessedMembers` attribute.
- Fixed debug files.
  • Loading branch information
Uralstech committed Nov 2, 2024
1 parent a3cbd41 commit c5bbb92
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ CHANGELOG - What's new?
See the GitHub releases for more detailed info:
https://github.com/Uralstech/ezrSquared/releases

* ezr² RE - v0.8.3 [02-11-24]
* Fixed warning in `EzrObject` caused by missing `DynamicallyAccessedMembers` attribute.
* Fixed debug files.

* ezr² RE - v0.8.2 [02-11-24]
* Added portable debug files.

Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ out, you can download it from the [***releases page on GitHub***](https://github
* Run the installer and go through the installation.
<br/>

[![ezr² RE v0.8.2 for Windows x64](https://img.shields.io/badge/ezr%C2%B2_RE_v0.8.2_%28Windows_x64%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.8.2/ezrSquared.Shell.Setup.Win64.exe)
[![ezr² RE v0.8.2 for Windows x86](https://img.shields.io/badge/ezr%C2%B2_RE_v0.8.2_%28Windows_x86%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.8.2/ezrSquared.Shell.Setup.Win32.exe)
[![ezr² RE v0.8.3 for Windows x64](https://img.shields.io/badge/ezr%C2%B2_RE_v0.8.3_%28Windows_x64%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.8.3/ezrSquared.Shell.Setup.Win64.exe)
[![ezr² RE v0.8.3 for Windows x86](https://img.shields.io/badge/ezr%C2%B2_RE_v0.8.3_%28Windows_x86%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.8.3/ezrSquared.Shell.Setup.Win32.exe)

# [NuGet](#tab/REnuget)

You can use ezr² RE as a scripting language for your .NET apps by downloading it from NuGet!

[![ezr² RE on NuGet](https://img.shields.io/badge/ezr%C2%B2_RE_on_NuGet-32CD32?style=for-the-badge&logo=nuget&logoColor=white)](https://www.nuget.org/packages/ezrSquared)
[![ezr² RE v0.8.2 (.nupkg download)](https://img.shields.io/badge/ezr%C2%B2_RE_v0.8.2_%28.nupkg_download%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.8.2/ezrSquared.0.8.2-unstable.nupkg)
[![ezr² RE v0.8.3 (.nupkg download)](https://img.shields.io/badge/ezr%C2%B2_RE_v0.8.3_%28.nupkg_download%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.8.3/ezrSquared.0.8.3-unstable.nupkg)

# [Other](#tab/REother)

Expand Down
3 changes: 1 addition & 2 deletions src/EzrSquared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

<SelfContained>True</SelfContained>
<IsPublishable>True</IsPublishable>
<DebugType>portable</DebugType>

<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">True</IsAotCompatible>
</PropertyGroup>
Expand All @@ -29,7 +28,7 @@
<Title>ezr² Portable Library</Title>
<Description>The ezr² programming language, as a portable class library! This can be used to integrate ezr² as an embedded scripting language in your apps, websites and more!</Description>

<PackageVersion>0.8.2-unstable</PackageVersion>
<PackageVersion>0.8.3-unstable</PackageVersion>

<Authors>Udayshankar Ravikumar</Authors>
<Company>URAV ADVANCED LEARNING SYSTEMS PRIVATE LIMITED</Company>
Expand Down
8 changes: 5 additions & 3 deletions src/Runtime/Types/BaseTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using EzrSquared.Runtime.Types.Core.Text;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Numerics;
using System.Reflection;

Expand Down Expand Up @@ -48,14 +49,15 @@ public abstract class EzrObject : IEzrObject
/// <typeparam name="TParentType">The type which the member is a part of.</typeparam>
/// <param name="name">The name of the member.</param>
/// <returns>The cached member data or the first member with the given <paramref name="name"/>. <see langword="null"/> if not found.</returns>
internal static TMemberInfo? GetMemberInfo<TMemberInfo, TParentType>(string name) where TMemberInfo : MemberInfo
internal static TMemberInfo? GetMemberInfo<TMemberInfo, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TParentType>(string name) where TMemberInfo : MemberInfo
{
(Type ParentType, string MemberName) key = (typeof(TParentType), name);
Type parentType = typeof(TParentType);
(Type, string) key = (parentType, name);

if (s_memberMap.Value.TryGetValue(key, out MemberInfo? cachedMemberInfo))
return (TMemberInfo)cachedMemberInfo;

MemberInfo[] members = key.ParentType.GetMember(name);
MemberInfo[] members = parentType.GetMember(name);
if (members.Length == 0 || members[0] is not TMemberInfo memberInfo)
return default;

Expand Down
2 changes: 1 addition & 1 deletion src/Shell/EzrShell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace EzrSquaredCli;
/// </summary>
internal class Shell
{
private const string Version = "0.8.2";
private const string Version = "0.8.3";

private static bool s_showLexerOutput;
private static bool s_showParserOutput;
Expand Down
2 changes: 1 addition & 1 deletion src/Shell/InstallerSrc/ezrSquared 32-bit.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "environment.iss"

#define MyAppName "ezr² Shell"
#define MyAppVersion "0.8.2"
#define MyAppVersion "0.8.3"
#define MyAppPublisher "Urav Advanced Learning Systems Pvt Ltd"
#define MyAppURL "https://uralstech.github.io/ezrSquared/"
#define MyAppExeName "ezrSquared.exe"
Expand Down
2 changes: 1 addition & 1 deletion src/Shell/InstallerSrc/ezrSquared 64-bit.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "environment.iss"

#define MyAppName "ezr² Shell"
#define MyAppVersion "0.8.2"
#define MyAppVersion "0.8.3"
#define MyAppPublisher "Urav Advanced Learning Systems Pvt Ltd"
#define MyAppURL "https://uralstech.github.io/ezrSquared/"
#define MyAppExeName "ezrSquared.exe"
Expand Down
2 changes: 1 addition & 1 deletion src/Shell/Shell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<Title>The ezrSquared Command Line Interface</Title>
<Description>The Command Line Interface for the ezrSquared programming language.</Description>

<Version>0.8.2</Version>
<Version>0.8.3</Version>

<Authors>Udayshankar Ravikumar</Authors>
<Company>URAV ADVANCED LEARNING SYSTEMS PRIVATE LIMITED</Company>
Expand Down

0 comments on commit c5bbb92

Please sign in to comment.