Skip to content

Commit fa01ed6

Browse files
committed
fix: tag instabilities in expressions
1 parent b74eda7 commit fa01ed6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Expression.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""This module defines a user-facing `Expression` type"""
22
module ExpressionModule
33

4+
using DispatchDoctor: @unstable
45
using ..NodeModule: AbstractExpressionNode
56
using ..OperatorEnumModule: AbstractOperatorEnum, OperatorEnum
67
using ..UtilsModule: Undefined
@@ -12,7 +13,7 @@ end
1213
_data(x::Metadata) = getfield(x, :_data)
1314

1415
Base.propertynames(x::Metadata) = propertynames(_data(x))
15-
@inline Base.getproperty(x::Metadata, f::Symbol) = getproperty(_data(x), f)
16+
@unstable @inline Base.getproperty(x::Metadata, f::Symbol) = getproperty(_data(x), f)
1617
Base.show(io::IO, x::Metadata) = print(io, "Metadata(", _data(x), ")")
1718
@inline _copy(x) = copy(x)
1819
@inline _copy(x::Nothing) = nothing

src/Parse.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ end
164164
end
165165

166166
"""Parse an expression Julia `Expr` object."""
167-
function parse_expression(
167+
@unstable function parse_expression(
168168
ex;
169169
operators::AbstractOperatorEnum,
170170
variable_names::Union{AbstractVector,Nothing}=nothing,
@@ -190,7 +190,7 @@ end
190190
"""An empty module for evaluation without collisions."""
191191
module EmptyModule end
192192

193-
function _parse_expression(
193+
@unstable function _parse_expression(
194194
ex::Expr,
195195
operators::AbstractOperatorEnum,
196196
variable_names::Union{AbstractVector{<:AbstractString},Nothing},
@@ -217,7 +217,7 @@ function _parse_expression(
217217
func, args, operators, variable_names, N, E, evaluate_on; kws...
218218
)
219219
end
220-
function _parse_expression(
220+
@unstable function _parse_expression(
221221
func::F,
222222
args,
223223
operators::AbstractOperatorEnum,
@@ -306,7 +306,7 @@ function _parse_expression(
306306
)
307307
end
308308
end
309-
function _parse_expression(
309+
@unstable function _parse_expression(
310310
ex,
311311
operators::AbstractOperatorEnum,
312312
variable_names::Union{AbstractVector{<:AbstractString},Nothing},
@@ -318,7 +318,7 @@ function _parse_expression(
318318
return parse_leaf(ex, variable_names, node_type, expression_type; kws...)
319319
end
320320

321-
function parse_leaf(
321+
@unstable function parse_leaf(
322322
ex,
323323
variable_names,
324324
node_type::Type{<:AbstractExpressionNode},

0 commit comments

Comments
 (0)