diff --git a/src/Acornima/Ast/NodeList.cs b/src/Acornima/Ast/NodeList.cs index 2a568e5..00997c9 100644 --- a/src/Acornima/Ast/NodeList.cs +++ b/src/Acornima/Ast/NodeList.cs @@ -190,6 +190,11 @@ internal static NodeList From(ref ArrayList arrayList) where T : Node? return new NodeList(items, count); } + [Obsolete($"This method has been renamed to '{nameof(From)}' for consistency, so it exists only for maintaining backward compatibility and will be removed from the public API in a future major version.")] + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static NodeList Create(IEnumerable source) where T : Node? + => From(source); + public static NodeList From(IEnumerable source) where T : Node? { if (source is null)