mirror of https://github.com/mpastell/Weave.jl
fix typings
parent
c825076e36
commit
4b6fc2d913
11
src/types.jl
11
src/types.jl
|
@ -1,3 +1,4 @@
|
||||||
|
# TODO: concreate typing
|
||||||
|
|
||||||
abstract type WeaveChunk end
|
abstract type WeaveChunk end
|
||||||
|
|
||||||
|
@ -5,7 +6,7 @@ mutable struct WeaveDoc
|
||||||
source::AbstractString
|
source::AbstractString
|
||||||
basename::AbstractString
|
basename::AbstractString
|
||||||
path::AbstractString
|
path::AbstractString
|
||||||
chunks::Array{WeaveChunk}
|
chunks::Vector{WeaveChunk}
|
||||||
cwd::AbstractString
|
cwd::AbstractString
|
||||||
format::Any
|
format::Any
|
||||||
doctype::AbstractString
|
doctype::AbstractString
|
||||||
|
@ -23,7 +24,7 @@ struct ChunkOutput
|
||||||
stdout::AbstractString
|
stdout::AbstractString
|
||||||
displayed::AbstractString
|
displayed::AbstractString
|
||||||
rich_output::AbstractString
|
rich_output::AbstractString
|
||||||
figures::Array{AbstractString}
|
figures::Vector{AbstractString}
|
||||||
end
|
end
|
||||||
|
|
||||||
mutable struct CodeChunk <: WeaveChunk
|
mutable struct CodeChunk <: WeaveChunk
|
||||||
|
@ -35,8 +36,8 @@ mutable struct CodeChunk <: WeaveChunk
|
||||||
options::Dict{Symbol,Any}
|
options::Dict{Symbol,Any}
|
||||||
output::AbstractString
|
output::AbstractString
|
||||||
rich_output::AbstractString
|
rich_output::AbstractString
|
||||||
figures::Array{AbstractString}
|
figures::Vector{AbstractString}
|
||||||
result::Array{ChunkOutput}
|
result::Vector{ChunkOutput}
|
||||||
function CodeChunk(content, number, start_line, optionstring, options)
|
function CodeChunk(content, number, start_line, optionstring, options)
|
||||||
new(
|
new(
|
||||||
rstrip(content) * "\n",
|
rstrip(content) * "\n",
|
||||||
|
@ -76,7 +77,7 @@ mutable struct InlineCode <: Inline
|
||||||
ctype::Symbol
|
ctype::Symbol
|
||||||
output::AbstractString
|
output::AbstractString
|
||||||
rich_output::AbstractString
|
rich_output::AbstractString
|
||||||
figures::Array{AbstractString}
|
figures::Vector{AbstractString}
|
||||||
function InlineCode(content, si, ei, number, ctype)
|
function InlineCode(content, si, ei, number, ctype)
|
||||||
new(content, si, ei, number, ctype, "", "", AbstractString[])
|
new(content, si, ei, number, ctype, "", "", AbstractString[])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue