Skip to content

Commit

Permalink
support interpolating strings
Browse files Browse the repository at this point in the history
  • Loading branch information
a committed Jul 18, 2024
1 parent 99711c0 commit d30e44c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ mutable struct JLFunction <: JLExpr
whereparams::Maybe{Vector{Any}}
body::Any
line::Maybe{LineNumberNode}
doc::Maybe{String}
doc::Maybe{Union{String, Expr}}
end

function JLFunction(;
Expand Down Expand Up @@ -163,7 +163,7 @@ mutable struct JLField <: JLExpr
name::Symbol
type::Any
isconst::Bool # v1.8
doc::Maybe{String}
doc::Maybe{Union{String, Expr}}
line::Maybe{LineNumberNode}
end

Expand Down Expand Up @@ -198,7 +198,7 @@ mutable struct JLKwField <: JLExpr
name::Symbol
type::Any
isconst::Bool # v1.8
doc::Maybe{String}
doc::Maybe{Union{String, Expr}}
line::Maybe{LineNumberNode}
default::Any
end
Expand Down Expand Up @@ -281,7 +281,7 @@ mutable struct JLStruct <: JLExpr
fields::Vector{JLField}
constructors::Vector{JLFunction}
line::Maybe{LineNumberNode}
doc::Maybe{String}
doc::Maybe{Union{String, Expr}}
misc::Any
end

Expand Down Expand Up @@ -329,7 +329,7 @@ mutable struct JLKwStruct <: JLExpr
fields::Vector{JLKwField}
constructors::Vector{JLFunction}
line::Maybe{LineNumberNode}
doc::Maybe{String}
doc::Maybe{Union{String, Expr}}
misc::Any
end

Expand Down

0 comments on commit d30e44c

Please sign in to comment.