@exercism/codemirror-lang-julia 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/index.cjs +2116 -0
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +2086 -0
- package/package.json +59 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,2086 @@
|
|
|
1
|
+
import { NodeWeakMap, NodeProp } from '@lezer/common';
|
|
2
|
+
import { parser } from '@exercism/lezer-julia';
|
|
3
|
+
import { syntaxTree, LRLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';
|
|
4
|
+
import * as autocomplete from '@codemirror/autocomplete';
|
|
5
|
+
import { snippetCompletion, completeFromList } from '@codemirror/autocomplete';
|
|
6
|
+
|
|
7
|
+
const baseNames = [
|
|
8
|
+
["AbstractArray", "type", "AbstractArray{T,N}"],
|
|
9
|
+
["AbstractChar", "type", ""],
|
|
10
|
+
["AbstractFloat", "type", ""],
|
|
11
|
+
["AbstractString", "type", ""],
|
|
12
|
+
["Any", "type", ""],
|
|
13
|
+
["ArgumentError", "type", "ArgumentError(msg)"],
|
|
14
|
+
["Array", "type", "Array{T}(missing, dims)"],
|
|
15
|
+
["AssertionError", "type", "AssertionError([msg])"],
|
|
16
|
+
["AtomicMemory", "type", "AtomicMemory{T} == GenericMemory{:atomic, T, Core.CPU}"],
|
|
17
|
+
["AtomicMemoryRef", "type", ""],
|
|
18
|
+
["Bool", "type", ""],
|
|
19
|
+
["BoundsError", "type", "BoundsError([a],[i])"],
|
|
20
|
+
["Char", "type", "Char(c::Union{Number,AbstractChar})"],
|
|
21
|
+
["ConcurrencyViolationError", "type", "ConcurrencyViolationError(msg) <: Exception"],
|
|
22
|
+
["Cvoid", "type", ""],
|
|
23
|
+
["DataType", "type", ""],
|
|
24
|
+
["DenseArray", "type", "DenseArray{T, N} <: AbstractArray{T,N}"],
|
|
25
|
+
["DivideError", "type", "DivideError()"],
|
|
26
|
+
["DomainError", "type", "DomainError(val)"],
|
|
27
|
+
["ErrorException", "type", "ErrorException(msg)"],
|
|
28
|
+
["Exception", "type", ""],
|
|
29
|
+
["Expr", "type", "Expr(head::Symbol, args...)"],
|
|
30
|
+
["FieldError", "type", "FieldError(type::DataType, field::Symbol)"],
|
|
31
|
+
["Float16", "type", ""],
|
|
32
|
+
["Float32", "type", "Float32(x [, mode::RoundingMode])"],
|
|
33
|
+
["Float64", "type", "Float64(x [, mode::RoundingMode])"],
|
|
34
|
+
["Function", "type", ""],
|
|
35
|
+
["GenericMemory", "type", "GenericMemory{kind::Symbol, T, addrspace=Core.CPU} <: DenseVector{T}"],
|
|
36
|
+
["GenericMemoryRef", "type", "GenericMemoryRef{isatomic, T, addrspace} <: Ref{T} <: Any"],
|
|
37
|
+
["GlobalRef", "type", ""],
|
|
38
|
+
["IO", "type", ""],
|
|
39
|
+
["InexactError", "type", "InexactError(name::Symbol, T, val)"],
|
|
40
|
+
["InitError", "type", "InitError(mod::Symbol, error)"],
|
|
41
|
+
["Int", "type", ""],
|
|
42
|
+
["Int128", "type", ""],
|
|
43
|
+
["Int16", "type", ""],
|
|
44
|
+
["Int32", "type", ""],
|
|
45
|
+
["Int64", "type", ""],
|
|
46
|
+
["Int8", "type", ""],
|
|
47
|
+
["Integer", "type", ""],
|
|
48
|
+
["InterruptException", "type", "InterruptException()"],
|
|
49
|
+
["LineNumberNode", "type", ""],
|
|
50
|
+
["LoadError", "type", "LoadError(file::AbstractString, line::Int, error)"],
|
|
51
|
+
["Main", "namespace", ""],
|
|
52
|
+
["Memory", "type", "Memory{T}(undef, n)"],
|
|
53
|
+
["MemoryRef", "type", ""],
|
|
54
|
+
["Method", "type", ""],
|
|
55
|
+
["MethodError", "type", "MethodError(f, args)"],
|
|
56
|
+
["Module", "type", "Module(name::Symbol=:anonymous, std_imports=true, default_names=true)"],
|
|
57
|
+
["NTuple", "type", "NTuple{N, T}"],
|
|
58
|
+
["NamedTuple", "type", "NamedTuple(itr)"],
|
|
59
|
+
["Nothing", "type", ""],
|
|
60
|
+
["Number", "type", ""],
|
|
61
|
+
["OutOfMemoryError", "type", "OutOfMemoryError()"],
|
|
62
|
+
["OverflowError", "type", "OverflowError(msg)"],
|
|
63
|
+
["Pair", "type", "Pair(x, y)"],
|
|
64
|
+
["Ptr", "type", "Ptr{T}()"],
|
|
65
|
+
["QuoteNode", "type", ""],
|
|
66
|
+
["ReadOnlyMemoryError", "type", "ReadOnlyMemoryError()"],
|
|
67
|
+
["Real", "type", ""],
|
|
68
|
+
["Ref", "type", "Ref{T}"],
|
|
69
|
+
["SegmentationFault", "type", ""],
|
|
70
|
+
["Signed", "type", ""],
|
|
71
|
+
["StackOverflowError", "type", "StackOverflowError()"],
|
|
72
|
+
["String", "type", "String(s::AbstractString)"],
|
|
73
|
+
["Symbol", "type", "Symbol(x...)::Symbol"],
|
|
74
|
+
["Task", "type", "Task(func[, reserved_stack::Int])"],
|
|
75
|
+
["Tuple", "type", "Tuple{Types...}"],
|
|
76
|
+
["Type", "type", ""],
|
|
77
|
+
["TypeError", "type", "TypeError(func::Symbol, context::AbstractString, expected::Type, got)"],
|
|
78
|
+
["TypeVar", "type", ""],
|
|
79
|
+
["UInt", "type", ""],
|
|
80
|
+
["UInt128", "type", ""],
|
|
81
|
+
["UInt16", "type", ""],
|
|
82
|
+
["UInt32", "type", ""],
|
|
83
|
+
["UInt64", "type", ""],
|
|
84
|
+
["UInt8", "type", ""],
|
|
85
|
+
["UndefInitializer", "type", ""],
|
|
86
|
+
["UndefKeywordError", "type", "UndefKeywordError(var::Symbol)"],
|
|
87
|
+
["UndefRefError", "type", "UndefRefError()"],
|
|
88
|
+
["UndefVarError", "type", "UndefVarError(var::Symbol, [scope])"],
|
|
89
|
+
["Union", "type", "Union{Types...}"],
|
|
90
|
+
["UnionAll", "type", ""],
|
|
91
|
+
["Unsigned", "type", ""],
|
|
92
|
+
["Vararg", "constant", ""],
|
|
93
|
+
["VecElement", "type", "VecElement{T}"],
|
|
94
|
+
["WeakRef", "type", "WeakRef(x)"],
|
|
95
|
+
["applicable", "function", "applicable(f, args...)::Bool"],
|
|
96
|
+
["arrayref", "function", ""],
|
|
97
|
+
["arrayset", "function", ""],
|
|
98
|
+
["arraysize", "function", ""],
|
|
99
|
+
["const_arrayref", "function", ""],
|
|
100
|
+
["fieldtype", "function", "fieldtype(T, name::Symbol | index::Int)"],
|
|
101
|
+
["getfield", "function", "getfield(value, name::Symbol, [order::Symbol], [boundscheck::Bool=true])"],
|
|
102
|
+
["getglobal", "function", "getglobal(module::Module, name::Symbol, [order::Symbol=:monotonic])"],
|
|
103
|
+
["invoke", "function", "invoke(f, argtypes::Type, args...; kwargs...)"],
|
|
104
|
+
["isa", "function", "isa(x, type)::Bool"],
|
|
105
|
+
["isdefined", "function", "isdefined(m::Module, s::Symbol, [order::Symbol])"],
|
|
106
|
+
["isdefinedglobal", "function", "isdefinedglobal(m::Module, s::Symbol, [allow_import::Bool=true, [order::Symbol=:unordered]])"],
|
|
107
|
+
["modifyfield!", "function", "modifyfield!(value, name::Symbol, op, x, [order::Symbol])::Pair"],
|
|
108
|
+
["modifyglobal!", "function", "modifyglobal!(module::Module, name::Symbol, op, x, [order::Symbol=:monotonic])::Pair"],
|
|
109
|
+
["nfields", "function", "nfields(x)::Int"],
|
|
110
|
+
["nothing", "constant", ""],
|
|
111
|
+
["replacefield!", "function", "replacefield!(value, name::Symbol, expected, desired,"],
|
|
112
|
+
["replaceglobal!", "function", "replaceglobal!(module::Module, name::Symbol, expected, desired,"],
|
|
113
|
+
["setfield!", "function", "setfield!(value, name::Symbol, x, [order::Symbol])"],
|
|
114
|
+
["setfieldonce!", "function", "setfieldonce!(value, name::Union{Int,Symbol}, desired,"],
|
|
115
|
+
["setglobal!", "function", "setglobal!(module::Module, name::Symbol, x, [order::Symbol=:monotonic])"],
|
|
116
|
+
["setglobalonce!", "function", "setglobalonce!(module::Module, name::Symbol, value,"],
|
|
117
|
+
["swapfield!", "function", "swapfield!(value, name::Symbol, x, [order::Symbol])"],
|
|
118
|
+
["swapglobal!", "function", "swapglobal!(module::Module, name::Symbol, x, [order::Symbol=:monotonic])"],
|
|
119
|
+
["throw", "function", "throw(e)"],
|
|
120
|
+
["tuple", "function", "tuple(xs...)"],
|
|
121
|
+
["typeassert", "function", "typeassert(x, type)"],
|
|
122
|
+
["typeof", "function", "typeof(x)"],
|
|
123
|
+
["undef", "constant", ""],
|
|
124
|
+
["@Kwargs", "macro", "@Kwargs{key1::Type1, key2::Type2, ...}"],
|
|
125
|
+
["@MIME_str", "macro", ""],
|
|
126
|
+
["@NamedTuple", "macro", "@NamedTuple{key1::Type1, key2::Type2, ...}"],
|
|
127
|
+
["@__DIR__", "macro", "@__DIR__ -> String"],
|
|
128
|
+
["@__FILE__", "macro", "@__FILE__ -> String"],
|
|
129
|
+
["@__FUNCTION__", "macro", ""],
|
|
130
|
+
["@__LINE__", "macro", "@__LINE__ -> Int"],
|
|
131
|
+
["@__MODULE__", "macro", "@__MODULE__ -> Module"],
|
|
132
|
+
["@__dot__", "macro", ""],
|
|
133
|
+
["@acquire", "macro", ""],
|
|
134
|
+
["@allocated", "macro", ""],
|
|
135
|
+
["@allocations", "macro", ""],
|
|
136
|
+
["@assert", "macro", "@assert cond [text]"],
|
|
137
|
+
["@assume_effects", "macro", ""],
|
|
138
|
+
["@async", "macro", ""],
|
|
139
|
+
["@atomic", "macro", "@atomic var"],
|
|
140
|
+
["@atomiconce", "macro", "@atomiconce a.b.x = value"],
|
|
141
|
+
["@atomicreplace", "macro", "@atomicreplace a.b.x expected => desired"],
|
|
142
|
+
["@atomicswap", "macro", "@atomicswap a.b.x = new"],
|
|
143
|
+
["@b_str", "macro", ""],
|
|
144
|
+
["@big_str", "macro", "@big_str str"],
|
|
145
|
+
["@boundscheck", "macro", "@boundscheck(blk)"],
|
|
146
|
+
["@ccall", "macro", "@ccall library.function_name(argvalue1::argtype1, ...)::returntype"],
|
|
147
|
+
["@cfunction", "macro", "@cfunction(callable, ReturnType, (ArgumentTypes...,)) -> Ptr{Cvoid}"],
|
|
148
|
+
["@cmd", "macro", "@cmd str"],
|
|
149
|
+
["@coalesce", "macro", "@coalesce(x...)"],
|
|
150
|
+
["@constprop", "macro", ""],
|
|
151
|
+
["@debug", "macro", "@debug message [key=value | value ...]"],
|
|
152
|
+
["@deprecate", "macro", "@deprecate old new [export_old=true]"],
|
|
153
|
+
["@doc", "macro", "@doc \"blah\""],
|
|
154
|
+
["@elapsed", "macro", ""],
|
|
155
|
+
["@enum", "macro", "@enum EnumName[::BaseType] value1[=x] value2[=y]"],
|
|
156
|
+
["@error", "macro", "@error message [key=value | value ...]"],
|
|
157
|
+
["@eval", "macro", "@eval [mod,] ex"],
|
|
158
|
+
["@evalpoly", "macro", "@evalpoly(z, c...)"],
|
|
159
|
+
["@fastmath", "macro", "@fastmath expr"],
|
|
160
|
+
["@generated", "macro", "@generated f"],
|
|
161
|
+
["@gensym", "macro", ""],
|
|
162
|
+
["@goto", "macro", "@goto name"],
|
|
163
|
+
["@html_str", "macro", "@html_str -> Docs.HTML"],
|
|
164
|
+
["@inbounds", "macro", "@inbounds(blk)"],
|
|
165
|
+
["@info", "macro", "@info message [key=value | value ...]"],
|
|
166
|
+
["@inline", "macro", "@inline function longdef(x)"],
|
|
167
|
+
["@int128_str", "macro", "@int128_str str"],
|
|
168
|
+
["@invoke", "macro", "@invoke f(arg::T, ...; kwargs...)"],
|
|
169
|
+
["@invokelatest", "macro", "@invokelatest f(args...; kwargs...)"],
|
|
170
|
+
["@isdefined", "macro", "@isdefined(s)::Bool"],
|
|
171
|
+
["@kwdef", "macro", "@kwdef typedef"],
|
|
172
|
+
["@label", "macro", "@label name"],
|
|
173
|
+
["@lazy_str", "macro", ""],
|
|
174
|
+
["@locals", "macro", "@locals()"],
|
|
175
|
+
["@lock", "macro", "@lock l expr"],
|
|
176
|
+
["@lock_conflicts", "macro", ""],
|
|
177
|
+
["@macroexpand", "macro", "@macroexpand [mod,] ex"],
|
|
178
|
+
["@macroexpand1", "macro", "@macroexpand1 [mod,] ex"],
|
|
179
|
+
["@main", "macro", "@main(args) = println(\"Hello World\")"],
|
|
180
|
+
["@noinline", "macro", "@noinline function longdef(x)"],
|
|
181
|
+
["@nospecialize", "macro", "@nospecialize x y"],
|
|
182
|
+
["@polly", "macro", ""],
|
|
183
|
+
["@propagate_inbounds", "macro", ""],
|
|
184
|
+
["@r_str", "macro", "@r_str -> Regex"],
|
|
185
|
+
["@raw_str", "macro", "@raw_str -> String"],
|
|
186
|
+
["@s_str", "macro", "@s_str -> SubstitutionString"],
|
|
187
|
+
["@show", "macro", "@show exs..."],
|
|
188
|
+
["@showtime", "macro", "@showtime expr"],
|
|
189
|
+
["@simd", "macro", ""],
|
|
190
|
+
["@something", "macro", "@something(x...)"],
|
|
191
|
+
["@specialize", "macro", ""],
|
|
192
|
+
["@static", "macro", ""],
|
|
193
|
+
["@sync", "macro", ""],
|
|
194
|
+
["@task", "macro", ""],
|
|
195
|
+
["@text_str", "macro", "@text_str -> Docs.Text"],
|
|
196
|
+
["@threadcall", "macro", "@threadcall((cfunc, clib), rettype, (argtypes...), argvals...)"],
|
|
197
|
+
["@time", "macro", "@time expr"],
|
|
198
|
+
["@timed", "macro", ""],
|
|
199
|
+
["@timev", "macro", "@timev expr"],
|
|
200
|
+
["@uint128_str", "macro", "@uint128_str str"],
|
|
201
|
+
["@v_str", "macro", ""],
|
|
202
|
+
["@view", "macro", "@view A[inds...]"],
|
|
203
|
+
["@views", "macro", "@views expression"],
|
|
204
|
+
["@warn", "macro", "@warn message [key=value | value ...]"],
|
|
205
|
+
["@world", "macro", "@world(sym, world)"],
|
|
206
|
+
["ARGS", "constant", ""],
|
|
207
|
+
["AbstractChannel", "type", "AbstractChannel{T}"],
|
|
208
|
+
["AbstractDict", "type", "AbstractDict{K, V}"],
|
|
209
|
+
["AbstractDisplay", "type", ""],
|
|
210
|
+
["AbstractIrrational", "type", ""],
|
|
211
|
+
["AbstractLock", "type", ""],
|
|
212
|
+
["AbstractMatch", "type", ""],
|
|
213
|
+
["AbstractMatrix", "type", "AbstractMatrix{T}"],
|
|
214
|
+
["AbstractOneTo", "type", ""],
|
|
215
|
+
["AbstractPattern", "type", ""],
|
|
216
|
+
["AbstractPipe", "type", ""],
|
|
217
|
+
["AbstractRange", "type", "AbstractRange{T} <: AbstractVector{T}"],
|
|
218
|
+
["AbstractSet", "type", "AbstractSet{T}"],
|
|
219
|
+
["AbstractSlices", "type", "AbstractSlices{S,N} <: AbstractArray{S,N}"],
|
|
220
|
+
["AbstractUnitRange", "type", "AbstractUnitRange{T} <: OrdinalRange{T, T}"],
|
|
221
|
+
["AbstractVecOrMat", "type", "AbstractVecOrMat{T}"],
|
|
222
|
+
["AbstractVector", "type", "AbstractVector{T}"],
|
|
223
|
+
["AsyncCondition", "type", "AsyncCondition(callback::Function)"],
|
|
224
|
+
["Base", "namespace", ""],
|
|
225
|
+
["BigFloat", "type", ""],
|
|
226
|
+
["BigInt", "type", "BigInt(x)"],
|
|
227
|
+
["BitArray", "type", "BitArray(itr)"],
|
|
228
|
+
["BitMatrix", "type", ""],
|
|
229
|
+
["BitSet", "type", "BitSet([itr])"],
|
|
230
|
+
["BitVector", "type", "BitVector(nt::Tuple{Vararg{Bool}})"],
|
|
231
|
+
["Broadcast", "namespace", ""],
|
|
232
|
+
["BufferStream", "type", ""],
|
|
233
|
+
["C_NULL", "constant", ""],
|
|
234
|
+
["CanonicalIndexError", "type", ""],
|
|
235
|
+
["CapturedException", "type", ""],
|
|
236
|
+
["CartesianIndex", "type", "CartesianIndex(i, j, k...) -> I"],
|
|
237
|
+
["CartesianIndices", "type", "CartesianIndices(sz::Dims) -> R"],
|
|
238
|
+
["Cchar", "type", ""],
|
|
239
|
+
["Cdouble", "type", ""],
|
|
240
|
+
["Cfloat", "type", ""],
|
|
241
|
+
["Channel", "type", "Channel{T=Any}(func::Function, size=0; taskref=nothing, spawn=false, threadpool=nothing)"],
|
|
242
|
+
["Checked", "namespace", ""],
|
|
243
|
+
["Cint", "type", ""],
|
|
244
|
+
["Cintmax_t", "type", ""],
|
|
245
|
+
["Clong", "type", ""],
|
|
246
|
+
["Clonglong", "type", ""],
|
|
247
|
+
["Cmd", "type", "Cmd(cmd::Cmd; ignorestatus, detach, windows_verbatim, windows_hide, env, dir, uid, gid)"],
|
|
248
|
+
["CodeUnits", "type", "CodeUnits(s::AbstractString)"],
|
|
249
|
+
["Colon", "type", "Colon()"],
|
|
250
|
+
["ColumnSlices", "type", "ColumnSlices{M,AX,S}"],
|
|
251
|
+
["Complex", "type", "Complex{T<:Real} <: Number"],
|
|
252
|
+
["ComplexF16", "type", ""],
|
|
253
|
+
["ComplexF32", "type", ""],
|
|
254
|
+
["ComplexF64", "type", ""],
|
|
255
|
+
["ComposedFunction", "type", "ComposedFunction{Outer,Inner} <: Function"],
|
|
256
|
+
["CompositeException", "type", ""],
|
|
257
|
+
["Condition", "type", "Condition()"],
|
|
258
|
+
["Core", "namespace", ""],
|
|
259
|
+
["Cptrdiff_t", "type", ""],
|
|
260
|
+
["Cshort", "type", ""],
|
|
261
|
+
["Csize_t", "type", ""],
|
|
262
|
+
["Cssize_t", "type", ""],
|
|
263
|
+
["Cstring", "type", ""],
|
|
264
|
+
["Cuchar", "type", ""],
|
|
265
|
+
["Cuint", "type", ""],
|
|
266
|
+
["Cuintmax_t", "type", ""],
|
|
267
|
+
["Culong", "type", ""],
|
|
268
|
+
["Culonglong", "type", ""],
|
|
269
|
+
["Cushort", "type", ""],
|
|
270
|
+
["Cwchar_t", "type", ""],
|
|
271
|
+
["Cwstring", "type", ""],
|
|
272
|
+
["DEPOT_PATH", "constant", ""],
|
|
273
|
+
["DL_LOAD_PATH", "constant", ""],
|
|
274
|
+
["DenseMatrix", "type", "DenseMatrix{T}"],
|
|
275
|
+
["DenseVecOrMat", "type", "DenseVecOrMat{T}"],
|
|
276
|
+
["DenseVector", "type", "DenseVector{T}"],
|
|
277
|
+
["Dict", "type", "Dict([itr])"],
|
|
278
|
+
["DimensionMismatch", "type", "DimensionMismatch([msg])"],
|
|
279
|
+
["Dims", "type", "Dims{N}"],
|
|
280
|
+
["Docs", "namespace", ""],
|
|
281
|
+
["ENDIAN_BOM", "constant", ""],
|
|
282
|
+
["ENV", "constant", ""],
|
|
283
|
+
["EOFError", "type", "EOFError()"],
|
|
284
|
+
["Enum", "type", "Enum{T<:Integer}"],
|
|
285
|
+
["Event", "type", "Event([autoreset=false])"],
|
|
286
|
+
["ExponentialBackOff", "type", "ExponentialBackOff(; n=1, first_delay=0.05, max_delay=10.0, factor=5.0, jitter=0.1)"],
|
|
287
|
+
["Filesystem", "namespace", ""],
|
|
288
|
+
["Fix", "type", "Fix{N}(f, x)"],
|
|
289
|
+
["Fix1", "type", ""],
|
|
290
|
+
["Fix2", "type", ""],
|
|
291
|
+
["GC", "namespace", ""],
|
|
292
|
+
["Generator", "type", "Generator(f, iter)"],
|
|
293
|
+
["HTML", "type", "HTML(\"<div>foo</div>\")"],
|
|
294
|
+
["IOBuffer", "type", "IOBuffer(string::String)"],
|
|
295
|
+
["IOContext", "type", "IOContext(io::IO, KV::Pair...)"],
|
|
296
|
+
["IOServer", "type", ""],
|
|
297
|
+
["IOStream", "type", ""],
|
|
298
|
+
["IR", "namespace", ""],
|
|
299
|
+
["IdDict", "type", "IdDict([itr])"],
|
|
300
|
+
["IdSet", "type", "IdSet{T}([itr])"],
|
|
301
|
+
["ImmutableDict", "type", "ImmutableDict(KV::Pair)"],
|
|
302
|
+
["IndexCartesian", "type", "IndexCartesian()"],
|
|
303
|
+
["IndexLinear", "type", "IndexLinear()"],
|
|
304
|
+
["IndexStyle", "type", "IndexStyle(A)"],
|
|
305
|
+
["Inf", "constant", ""],
|
|
306
|
+
["Inf16", "constant", ""],
|
|
307
|
+
["Inf32", "constant", ""],
|
|
308
|
+
["Inf64", "constant", ""],
|
|
309
|
+
["InsertionSort", "constant", ""],
|
|
310
|
+
["InvalidStateException", "type", ""],
|
|
311
|
+
["Irrational", "type", "Irrational{sym} <: AbstractIrrational"],
|
|
312
|
+
["IteratorEltype", "type", "IteratorEltype(itertype::Type)::IteratorEltype"],
|
|
313
|
+
["IteratorSize", "type", "IteratorSize(itertype::Type)::IteratorSize"],
|
|
314
|
+
["Iterators", "namespace", ""],
|
|
315
|
+
["KeyError", "type", "KeyError(key)"],
|
|
316
|
+
["LOAD_PATH", "constant", ""],
|
|
317
|
+
["LazyString", "type", ""],
|
|
318
|
+
["Libc", "namespace", ""],
|
|
319
|
+
["LinRange", "type", "LinRange{T,L}"],
|
|
320
|
+
["LinearIndices", "type", "LinearIndices(A::AbstractArray)"],
|
|
321
|
+
["Lockable", "type", "Lockable(value, lock = ReentrantLock())"],
|
|
322
|
+
["LogRange", "type", "LogRange{T}(start, stop, len) <: AbstractVector{T}"],
|
|
323
|
+
["MIME", "type", ""],
|
|
324
|
+
["MathConstants", "namespace", ""],
|
|
325
|
+
["Matrix", "type", "Matrix{T}(missing, m, n)"],
|
|
326
|
+
["MergeSort", "constant", ""],
|
|
327
|
+
["Meta", "namespace", ""],
|
|
328
|
+
["Missing", "type", ""],
|
|
329
|
+
["MissingException", "type", "MissingException(msg)"],
|
|
330
|
+
["NaN", "constant", ""],
|
|
331
|
+
["NaN16", "constant", ""],
|
|
332
|
+
["NaN32", "constant", ""],
|
|
333
|
+
["NaN64", "constant", ""],
|
|
334
|
+
["OS_HANDLE", "type", ""],
|
|
335
|
+
["OncePerProcess", "type", "OncePerProcess{T}(init::Function)() -> T"],
|
|
336
|
+
["OncePerTask", "type", "OncePerTask{T}(init::Function)() -> T"],
|
|
337
|
+
["OncePerThread", "type", "OncePerThread{T}(init::Function)() -> T"],
|
|
338
|
+
["OneTo", "type", ""],
|
|
339
|
+
["Order", "namespace", ""],
|
|
340
|
+
["OrdinalRange", "type", "OrdinalRange{T, S} <: AbstractRange{T}"],
|
|
341
|
+
["PROGRAM_FILE", "constant", ""],
|
|
342
|
+
["Pairs", "type", ""],
|
|
343
|
+
["PartialQuickSort", "type", "PartialQuickSort{T <: Union{Integer,OrdinalRange}}"],
|
|
344
|
+
["PermutedDimsArray", "type", "PermutedDimsArray(A, perm) -> B"],
|
|
345
|
+
["Pipe", "type", "Pipe()"],
|
|
346
|
+
["PipeBuffer", "function", "PipeBuffer(data::AbstractVector{UInt8}=UInt8[]; maxsize::Integer = typemax(Int))"],
|
|
347
|
+
["PipeEndpoint", "type", ""],
|
|
348
|
+
["ProcessFailedException", "type", ""],
|
|
349
|
+
["QuickSort", "constant", ""],
|
|
350
|
+
["Rational", "type", "Rational{T<:Integer} <: Real"],
|
|
351
|
+
["RawFD", "type", ""],
|
|
352
|
+
["ReentrantLock", "type", "ReentrantLock()"],
|
|
353
|
+
["Regex", "type", "Regex(pattern[, flags]) <: AbstractPattern"],
|
|
354
|
+
["RegexMatch", "type", "RegexMatch(\"11:30\", hour=\"11\", minute=\"30\", 3=nothing)"],
|
|
355
|
+
["Returns", "type", ""],
|
|
356
|
+
["RoundDown", "constant", ""],
|
|
357
|
+
["RoundFromZero", "constant", ""],
|
|
358
|
+
["RoundNearest", "constant", ""],
|
|
359
|
+
["RoundNearestTiesAway", "constant", ""],
|
|
360
|
+
["RoundNearestTiesUp", "constant", ""],
|
|
361
|
+
["RoundToZero", "constant", ""],
|
|
362
|
+
["RoundUp", "constant", ""],
|
|
363
|
+
["RoundingMode", "type", ""],
|
|
364
|
+
["RowSlices", "type", "RowSlices{M,AX,S}"],
|
|
365
|
+
["ScopedValues", "namespace", ""],
|
|
366
|
+
["Semaphore", "type", "Semaphore(sem_size)"],
|
|
367
|
+
["Set", "type", "Set{T} <: AbstractSet{T}"],
|
|
368
|
+
["Slices", "type", "Slices{P,SM,AX,S,N} <: AbstractSlices{S,N}"],
|
|
369
|
+
["Some", "type", "Some{T}"],
|
|
370
|
+
["Sort", "namespace", ""],
|
|
371
|
+
["StackTraces", "namespace", ""],
|
|
372
|
+
["StepRange", "type", "StepRange{T, S} <: OrdinalRange{T, S}"],
|
|
373
|
+
["StepRangeLen", "type", "StepRangeLen( ref::R, step::S, len, [offset=1]) where { R,S}"],
|
|
374
|
+
["StridedArray", "type", "StridedArray{T, N}"],
|
|
375
|
+
["StridedMatrix", "type", "StridedMatrix{T}"],
|
|
376
|
+
["StridedVecOrMat", "type", "StridedVecOrMat{T}"],
|
|
377
|
+
["StridedVector", "type", "StridedVector{T}"],
|
|
378
|
+
["StringIndexError", "type", "StringIndexError(str, i)"],
|
|
379
|
+
["SubArray", "type", "SubArray{T,N,P,I,L} <: AbstractArray{T,N}"],
|
|
380
|
+
["SubString", "type", "SubString(s::AbstractString, i::Integer, j::Integer=lastindex(s))"],
|
|
381
|
+
["SubstitutionString", "type", "SubstitutionString(substr) <: AbstractString"],
|
|
382
|
+
["Sys", "namespace", ""],
|
|
383
|
+
["SystemError", "type", "SystemError(prefix::AbstractString, [errno::Int32])"],
|
|
384
|
+
["TTY", "type", ""],
|
|
385
|
+
["TaskFailedException", "type", ""],
|
|
386
|
+
["Text", "type", "Text(\"foo\")"],
|
|
387
|
+
["TextDisplay", "type", "TextDisplay(io::IO)"],
|
|
388
|
+
["Threads", "namespace", ""],
|
|
389
|
+
["Timer", "type", "Timer(callback::Function, delay; interval = 0, spawn::Union{Nothing,Bool}=nothing)"],
|
|
390
|
+
["UUID", "type", ""],
|
|
391
|
+
["UnitRange", "type", "UnitRange{T<:Real}"],
|
|
392
|
+
["VERSION", "constant", ""],
|
|
393
|
+
["Val", "type", "Val(c)"],
|
|
394
|
+
["VecOrMat", "type", "VecOrMat{T}"],
|
|
395
|
+
["Vector", "type", "Vector{T}(missing, m)"],
|
|
396
|
+
["VersionNumber", "type", ""],
|
|
397
|
+
["WeakKeyDict", "type", "WeakKeyDict([itr])"],
|
|
398
|
+
["abs", "function", "abs(x)"],
|
|
399
|
+
["abs2", "function", "abs2(x)"],
|
|
400
|
+
["abspath", "function", "abspath(path::AbstractString, paths::AbstractString...)::String"],
|
|
401
|
+
["accumulate", "function", "accumulate(op, A; dims::Integer, [init])"],
|
|
402
|
+
["accumulate!", "function", "accumulate!(op, B, A; [dims], [init])"],
|
|
403
|
+
["acos", "function", "acos(x::T) where {T <: Number} -> float(T)"],
|
|
404
|
+
["acosd", "function", "acosd(x)"],
|
|
405
|
+
["acosh", "function", "acosh(x)"],
|
|
406
|
+
["acot", "function", "acot(x::T) where {T <: Number} -> float(T)"],
|
|
407
|
+
["acotd", "function", "acotd(x)"],
|
|
408
|
+
["acoth", "function", "acoth(x::T) where {T <: Number} -> float(T)"],
|
|
409
|
+
["acquire", "function", "acquire(f, s::Semaphore)"],
|
|
410
|
+
["acsc", "function", "acsc(x::T) where {T <: Number} -> float(T)"],
|
|
411
|
+
["acscd", "function", "acscd(x)"],
|
|
412
|
+
["acsch", "function", "acsch(x::T) where {T <: Number} -> float(T)"],
|
|
413
|
+
["active_manifest", "function", "active_manifest()"],
|
|
414
|
+
["active_project", "function", "active_project()"],
|
|
415
|
+
["addenv", "function", "addenv(command::Cmd, env...; inherit::Bool = true)"],
|
|
416
|
+
["adjoint", "function", "adjoint(A)"],
|
|
417
|
+
["all", "function", "all(p, A; dims)"],
|
|
418
|
+
["all!", "function", "all!(r, A)"],
|
|
419
|
+
["allequal", "function", "allequal(itr)::Bool"],
|
|
420
|
+
["allunique", "function", "allunique(itr)::Bool"],
|
|
421
|
+
["angle", "function", "angle(z)"],
|
|
422
|
+
["any", "function", "any(p, A; dims)"],
|
|
423
|
+
["any!", "function", "any!(r, A)"],
|
|
424
|
+
["append!", "function", "append!(collection, collections...) -> collection."],
|
|
425
|
+
["argmax", "function", "argmax(A; dims) -> indices"],
|
|
426
|
+
["argmin", "function", "argmin(A; dims) -> indices"],
|
|
427
|
+
["ascii", "function", "ascii(s::AbstractString)"],
|
|
428
|
+
["asec", "function", "asec(x::T) where {T <: Number} -> float(T)"],
|
|
429
|
+
["asecd", "function", "asecd(x)"],
|
|
430
|
+
["asech", "function", "asech(x::T) where {T <: Number} -> float(T)"],
|
|
431
|
+
["asin", "function", "asin(x::T) where {T <: Number} -> float(T)"],
|
|
432
|
+
["asind", "function", "asind(x)"],
|
|
433
|
+
["asinh", "function", "asinh(x)"],
|
|
434
|
+
["asyncmap", "function", "asyncmap(f, c...; ntasks=0, batch_size=nothing)"],
|
|
435
|
+
["asyncmap!", "function", "asyncmap!(f, results, c...; ntasks=0, batch_size=nothing)"],
|
|
436
|
+
["atan", "function", "atan(y)"],
|
|
437
|
+
["atand", "function", "atand(y::T) where T -> float(T)"],
|
|
438
|
+
["atanh", "function", "atanh(x)"],
|
|
439
|
+
["atexit", "function", "atexit(f)"],
|
|
440
|
+
["atreplinit", "function", "atreplinit(f)"],
|
|
441
|
+
["axes", "function", "axes(A)"],
|
|
442
|
+
["backtrace", "function", "backtrace()"],
|
|
443
|
+
["basename", "function", "basename(path::AbstractString)::String"],
|
|
444
|
+
["big", "function", "big(T::Type)"],
|
|
445
|
+
["bind", "function", "bind(chnl::Channel, task::Task)"],
|
|
446
|
+
["binomial", "function", "binomial(x::Number, k::Integer)"],
|
|
447
|
+
["bitreverse", "function", "bitreverse(x)"],
|
|
448
|
+
["bitrotate", "function", "bitrotate(x::Base.BitInteger, k::Integer)"],
|
|
449
|
+
["bitstring", "function", "bitstring(n)"],
|
|
450
|
+
["broadcast", "function", "broadcast(f, As...)"],
|
|
451
|
+
["broadcast!", "function", "broadcast!(f, dest, As...)"],
|
|
452
|
+
["bswap", "function", "bswap(n)"],
|
|
453
|
+
["bytes2hex", "function", "bytes2hex(itr)::String"],
|
|
454
|
+
["bytesavailable", "function", "bytesavailable(io)"],
|
|
455
|
+
["cat", "function", "cat(A...; dims)"],
|
|
456
|
+
["catch_backtrace", "function", "catch_backtrace()"],
|
|
457
|
+
["cbrt", "function", "cbrt(x::Real)"],
|
|
458
|
+
["cconvert", "function", "cconvert(T,x)"],
|
|
459
|
+
["cd", "function", "cd(f::Function, dir::AbstractString=homedir())"],
|
|
460
|
+
["ceil", "function", "ceil([T,] x)"],
|
|
461
|
+
["cglobal", "function", "cglobal((symbol, library) [, type=Cvoid])"],
|
|
462
|
+
["checkbounds", "function", "checkbounds(A, I...)"],
|
|
463
|
+
["checked_length", "function", ""],
|
|
464
|
+
["checkindex", "function", "checkindex(Bool, inds::AbstractUnitRange, index)"],
|
|
465
|
+
["chmod", "function", "chmod(path::AbstractString, mode::Integer; recursive::Bool=false)"],
|
|
466
|
+
["chomp", "function", "chomp(s::AbstractString)::SubString"],
|
|
467
|
+
["chop", "function", "chop(s::AbstractString; head::Integer = 0, tail::Integer = 1)"],
|
|
468
|
+
["chopprefix", "function", "chopprefix(s::AbstractString, prefix::Union{AbstractString,Regex,AbstractChar})::SubString"],
|
|
469
|
+
["chopsuffix", "function", "chopsuffix(s::AbstractString, suffix::Union{AbstractString,Regex,AbstractChar})::SubString"],
|
|
470
|
+
["chown", "function", "chown(path::AbstractString, owner::Integer, group::Integer=-1)"],
|
|
471
|
+
["circcopy!", "function", "circcopy!(dest, src)"],
|
|
472
|
+
["circshift", "function", "circshift(A, shifts)"],
|
|
473
|
+
["circshift!", "function", "circshift!(dest, src, shifts)"],
|
|
474
|
+
["cis", "function", "cis(x)"],
|
|
475
|
+
["cispi", "function", "cispi(x)"],
|
|
476
|
+
["clamp", "function", "clamp(x::Integer, r::AbstractUnitRange)"],
|
|
477
|
+
["clamp!", "function", "clamp!(array::AbstractArray, lo, hi)"],
|
|
478
|
+
["cld", "function", "cld(x, y)"],
|
|
479
|
+
["close", "function", "close(t::Union{Timer, AsyncCondition})"],
|
|
480
|
+
["closewrite", "function", "closewrite(stream)"],
|
|
481
|
+
["cmp", "function", "cmp(a::AbstractString, b::AbstractString)::Int"],
|
|
482
|
+
["coalesce", "function", "coalesce(x...)"],
|
|
483
|
+
["code_lowered", "function", "code_lowered(f, types; generated=true, debuginfo=:default)"],
|
|
484
|
+
["code_typed", "function", "code_typed(f, types; kw...)"],
|
|
485
|
+
["codepoint", "function", "codepoint(c::AbstractChar)::Integer"],
|
|
486
|
+
["codeunit", "function", "codeunit(s::AbstractString, i::Integer)::Union{UInt8, UInt16, UInt32}"],
|
|
487
|
+
["codeunits", "function", "codeunits(s::AbstractString)"],
|
|
488
|
+
["collect", "function", "collect(iterator)"],
|
|
489
|
+
["complex", "function", "complex(A::AbstractArray)"],
|
|
490
|
+
["conj", "function", "conj(A::AbstractArray)"],
|
|
491
|
+
["conj!", "function", "conj!(A)"],
|
|
492
|
+
["contains", "function", "contains(needle)"],
|
|
493
|
+
["contractuser", "function", "contractuser(path::AbstractString)::AbstractString"],
|
|
494
|
+
["convert", "function", "convert(T, x)"],
|
|
495
|
+
["copy", "function", "copy(x)"],
|
|
496
|
+
["copy!", "function", "copy!(dst, src) -> dst"],
|
|
497
|
+
["copyline", "function", "copyline(out::IO, io::IO=stdin; keep::Bool=false)"],
|
|
498
|
+
["copysign", "function", "copysign(x, y) -> z"],
|
|
499
|
+
["copyto!", "function", "copyto!(dest, Rdest::CartesianIndices, src, Rsrc::CartesianIndices) -> dest"],
|
|
500
|
+
["copyuntil", "function", "copyuntil(out::IO, stream::IO, delim; keep::Bool = false)"],
|
|
501
|
+
["cos", "function", "cos(x::T) where {T <: Number} -> float(T)"],
|
|
502
|
+
["cosc", "function", "cosc(x::T) where {T <: Number} -> float(T)"],
|
|
503
|
+
["cosd", "function", "cosd(x::T) where T -> float(T)"],
|
|
504
|
+
["cosh", "function", "cosh(x)"],
|
|
505
|
+
["cospi", "function", "cospi(x::T) where T -> float(T)"],
|
|
506
|
+
["cot", "function", "cot(x::T) where {T <: Number} -> float(T)"],
|
|
507
|
+
["cotd", "function", "cotd(x::T) where {T <: Number} -> float(T)"],
|
|
508
|
+
["coth", "function", "coth(x::T) where {T <: Number} -> float(T)"],
|
|
509
|
+
["count", "function", "count([f=identity,] A::AbstractArray; dims=:)"],
|
|
510
|
+
["count!", "function", "count!([f=identity,] r, A)"],
|
|
511
|
+
["count_ones", "function", "count_ones(x::Integer)::Integer"],
|
|
512
|
+
["count_zeros", "function", "count_zeros(x::Integer)::Integer"],
|
|
513
|
+
["countlines", "function", "countlines(io::IO; eol::AbstractChar = '\\n')"],
|
|
514
|
+
["cp", "function", "cp(src::AbstractString, dst::AbstractString; force::Bool=false, follow_symlinks::Bool=false)"],
|
|
515
|
+
["csc", "function", "csc(x::T) where {T <: Number} -> float(T)"],
|
|
516
|
+
["cscd", "function", "cscd(x::T) where {T <: Number} -> float(T)"],
|
|
517
|
+
["csch", "function", "csch(x::T) where {T <: Number} -> float(T)"],
|
|
518
|
+
["ctime", "function", "ctime(path)"],
|
|
519
|
+
["ctruncate", "function", ""],
|
|
520
|
+
["cumprod", "function", "cumprod(itr)"],
|
|
521
|
+
["cumprod!", "function", "cumprod!(y::AbstractVector, x::AbstractVector)"],
|
|
522
|
+
["cumsum", "function", "cumsum(itr)"],
|
|
523
|
+
["cumsum!", "function", "cumsum!(B, A; dims::Integer)"],
|
|
524
|
+
["current_exceptions", "function", "current_exceptions(task::Task=current_task(); [backtrace::Bool=true])"],
|
|
525
|
+
["current_task", "function", "current_task()"],
|
|
526
|
+
["deepcopy", "function", "deepcopy(x)"],
|
|
527
|
+
["deg2rad", "function", "deg2rad(x)"],
|
|
528
|
+
["delete!", "function", "delete!(collection, key)"],
|
|
529
|
+
["deleteat!", "function", "deleteat!(a::Vector, inds)"],
|
|
530
|
+
["denominator", "function", "denominator(x)"],
|
|
531
|
+
["depwarn", "function", ""],
|
|
532
|
+
["detach", "function", "detach(command)"],
|
|
533
|
+
["devnull", "constant", ""],
|
|
534
|
+
["diff", "function", "diff(A::AbstractVector)"],
|
|
535
|
+
["digits", "function", "digits([T<:Integer], n::Integer; base::T = 10, pad::Integer = 1)"],
|
|
536
|
+
["digits!", "function", "digits!(array, n::Integer; base::Integer = 10)"],
|
|
537
|
+
["dirname", "function", "dirname(path::AbstractString)::String"],
|
|
538
|
+
["disable_sigint", "function", "disable_sigint(f::Function)"],
|
|
539
|
+
["diskstat", "function", "diskstat(path=pwd())"],
|
|
540
|
+
["display", "function", "display(x)"],
|
|
541
|
+
["displayable", "function", "displayable(mime)::Bool"],
|
|
542
|
+
["displaysize", "function", "displaysize([io::IO]) -> (lines, columns)"],
|
|
543
|
+
["div", "function", "div(x, y, r::RoundingMode=RoundToZero)"],
|
|
544
|
+
["divrem", "function", "divrem(x, y, r::RoundingMode=RoundToZero)"],
|
|
545
|
+
["donotdelete", "function", "donotdelete(i)"],
|
|
546
|
+
["download", "function", "download(url::AbstractString, [path::AbstractString = tempname()]) -> path"],
|
|
547
|
+
["dropdims", "function", "dropdims(A; dims)"],
|
|
548
|
+
["dump", "function", "dump(x; maxdepth=8)"],
|
|
549
|
+
["dup", "function", "dup(src::RawFD[, target::RawFD])::RawFD"],
|
|
550
|
+
["eachcol", "function", "eachcol(A::AbstractVecOrMat) <: AbstractVector"],
|
|
551
|
+
["eachindex", "function", "eachindex(A...)"],
|
|
552
|
+
["eachline", "function", "eachline(io::IO=stdin; keep::Bool=false)"],
|
|
553
|
+
["eachmatch", "function", "eachmatch(r::Regex, s::AbstractString; overlap::Bool=false)"],
|
|
554
|
+
["eachrow", "function", "eachrow(A::AbstractVecOrMat) <: AbstractVector"],
|
|
555
|
+
["eachrsplit", "function", "eachrsplit(str::AbstractString, dlm; limit::Integer=0, keepempty::Bool=true)"],
|
|
556
|
+
["eachslice", "function", "eachslice(A::AbstractArray; dims, drop=true)"],
|
|
557
|
+
["eachsplit", "function", "eachsplit(str::AbstractString, dlm; limit::Integer=0, keepempty::Bool=true)"],
|
|
558
|
+
["elsize", "function", "elsize(type)"],
|
|
559
|
+
["eltype", "function", "eltype(type)"],
|
|
560
|
+
["empty", "function", "empty(a::AbstractDict, [index_type=keytype(a)], [value_type=valtype(a)])"],
|
|
561
|
+
["empty!", "function", "empty!(c::Channel)"],
|
|
562
|
+
["endswith", "function", "endswith(s::AbstractString, suffix::Regex)"],
|
|
563
|
+
["enumerate", "function", "enumerate(iter)"],
|
|
564
|
+
["eof", "function", "eof(stream)::Bool"],
|
|
565
|
+
["eps", "function", "eps(x::AbstractFloat)"],
|
|
566
|
+
["error", "function", "error(msg...)"],
|
|
567
|
+
["errormonitor", "function", "errormonitor(t::Task)"],
|
|
568
|
+
["esc", "function", "esc(e)"],
|
|
569
|
+
["escape_microsoft_c_args", "function", "escape_microsoft_c_args(args::Union{Cmd,AbstractString...})"],
|
|
570
|
+
["escape_raw_string", "function", "escape_raw_string(s::AbstractString, delim='\"')::AbstractString"],
|
|
571
|
+
["escape_string", "function", "escape_string(str::AbstractString[, esc]; keep=(), ascii=false, fullhex=false)::AbstractString"],
|
|
572
|
+
["evalfile", "function", "evalfile(path::AbstractString, args::Vector{String}=String[])"],
|
|
573
|
+
["evalpoly", "function", "evalpoly(x, p)"],
|
|
574
|
+
["exit", "function", "exit(code=0)"],
|
|
575
|
+
["exit_on_sigint", "function", "exit_on_sigint(on::Bool)"],
|
|
576
|
+
["exp", "function", "exp(x)"],
|
|
577
|
+
["exp10", "function", "exp10(x)"],
|
|
578
|
+
["exp2", "function", "exp2(x)"],
|
|
579
|
+
["expanduser", "function", "expanduser(path::AbstractString)::AbstractString"],
|
|
580
|
+
["expm1", "function", "expm1(x)"],
|
|
581
|
+
["exponent", "function", "exponent(x::Real)::Int"],
|
|
582
|
+
["extrema", "function", "extrema(f, A::AbstractArray; dims) -> Array{Tuple}"],
|
|
583
|
+
["extrema!", "function", "extrema!(r, A)"],
|
|
584
|
+
["factorial", "function", "factorial(n::Integer)"],
|
|
585
|
+
["falses", "function", "falses(dims)"],
|
|
586
|
+
["fd", "function", "fd(x)::RawFD"],
|
|
587
|
+
["fdio", "function", "fdio([name::AbstractString, ]fd::Integer[, own::Bool=false])::IOStream"],
|
|
588
|
+
["fetch", "function", "fetch(t::Task)"],
|
|
589
|
+
["fieldcount", "function", "fieldcount(t::Type)"],
|
|
590
|
+
["fieldindex", "function", "fieldindex(T, name::Symbol, err:Bool=true)"],
|
|
591
|
+
["fieldname", "function", "fieldname(x::DataType, i::Integer)"],
|
|
592
|
+
["fieldnames", "function", "fieldnames(x::DataType)"],
|
|
593
|
+
["fieldoffset", "function", "fieldoffset(type, name::Symbol | i::Integer)"],
|
|
594
|
+
["fieldtypes", "function", "fieldtypes(T::Type)"],
|
|
595
|
+
["filemode", "function", "filemode(path)"],
|
|
596
|
+
["filesize", "function", "filesize(path)"],
|
|
597
|
+
["fill", "function", "fill(value, dims::Tuple)"],
|
|
598
|
+
["fill!", "function", "fill!(A, x)"],
|
|
599
|
+
["filter", "function", "filter(f, itr::SkipMissing{<:AbstractArray})"],
|
|
600
|
+
["filter!", "function", "filter!(f, d::AbstractDict)"],
|
|
601
|
+
["finalize", "function", "finalize(x)"],
|
|
602
|
+
["finalizer", "function", "finalizer(f, x)"],
|
|
603
|
+
["findall", "function", "findall(c::AbstractChar, s::AbstractString)"],
|
|
604
|
+
["findfirst", "function", "findfirst(pattern::AbstractVector{<:Union{Int8,UInt8}},"],
|
|
605
|
+
["findlast", "function", "findlast(ch::AbstractChar, string::AbstractString)"],
|
|
606
|
+
["findmax", "function", "findmax(f, A; dims) -> (f(x), index)"],
|
|
607
|
+
["findmax!", "function", "findmax!(rval, rind, A) -> (maxval, index)"],
|
|
608
|
+
["findmin", "function", "findmin(f, A; dims) -> (f(x), index)"],
|
|
609
|
+
["findmin!", "function", "findmin!(rval, rind, A) -> (minval, index)"],
|
|
610
|
+
["findnext", "function", "findnext(pattern::AbstractVector{<:Union{Int8,UInt8}},"],
|
|
611
|
+
["findprev", "function", "findprev(pattern::AbstractVector{<:Union{Int8,UInt8}},"],
|
|
612
|
+
["first", "function", "first(s::AbstractString, n::Integer)"],
|
|
613
|
+
["firstindex", "function", "firstindex(collection)::Integer"],
|
|
614
|
+
["fld", "function", "fld(x, y)"],
|
|
615
|
+
["fld1", "function", "fld1(x, y)"],
|
|
616
|
+
["fldmod", "function", "fldmod(x, y)"],
|
|
617
|
+
["fldmod1", "function", "fldmod1(x, y)"],
|
|
618
|
+
["flipsign", "function", "flipsign(x, y)"],
|
|
619
|
+
["float", "function", "float(A::AbstractArray)"],
|
|
620
|
+
["floatmax", "function", "floatmax(T = Float64)"],
|
|
621
|
+
["floatmin", "function", "floatmin(T = Float64)"],
|
|
622
|
+
["floor", "function", "floor([T,] x)"],
|
|
623
|
+
["flush", "function", "flush(io::IO)"],
|
|
624
|
+
["fma", "function", "fma(x, y, z)"],
|
|
625
|
+
["foldl", "function", "foldl(op, itr; [init])"],
|
|
626
|
+
["foldr", "function", "foldr(op, itr; [init])"],
|
|
627
|
+
["foreach", "function", "foreach(f, c...) -> nothing"],
|
|
628
|
+
["fourthroot", "function", "fourthroot(x)"],
|
|
629
|
+
["frexp", "function", "frexp(val)"],
|
|
630
|
+
["front", "function", "front(x::Tuple)::Tuple"],
|
|
631
|
+
["fullname", "function", "fullname(m::Module)"],
|
|
632
|
+
["functionloc", "function", "functionloc(f::Function, types)"],
|
|
633
|
+
["gcd", "function", "gcd(x, y...)"],
|
|
634
|
+
["gcdx", "function", "gcdx(a, b...)"],
|
|
635
|
+
["gensym", "function", "gensym([tag])"],
|
|
636
|
+
["get", "function", "get(f::Union{Function, Type}, collection, key)"],
|
|
637
|
+
["get!", "function", "get!(f::Union{Function, Type}, collection, key)"],
|
|
638
|
+
["get_extension", "function", "get_extension(parent::Module, extension::Symbol)"],
|
|
639
|
+
["get_zero_subnormals", "function", "get_zero_subnormals()::Bool"],
|
|
640
|
+
["gethostname", "function", "gethostname()::String"],
|
|
641
|
+
["getindex", "function", "getindex(A, inds...)"],
|
|
642
|
+
["getkey", "function", "getkey(collection, key, default)"],
|
|
643
|
+
["getpid", "function", "getpid(process)::Int32"],
|
|
644
|
+
["getproperty", "function", "getproperty(value, name::Symbol)"],
|
|
645
|
+
["gperm", "function", "gperm(path)"],
|
|
646
|
+
["hardlink", "function", "hardlink(src::AbstractString, dst::AbstractString)"],
|
|
647
|
+
["has_offset_axes", "function", "has_offset_axes(A)"],
|
|
648
|
+
["hasfield", "function", "hasfield(T::Type, name::Symbol)"],
|
|
649
|
+
["hash", "function", "hash(x[, h::UInt])::UInt"],
|
|
650
|
+
["haskey", "function", "haskey(collection, key)::Bool"],
|
|
651
|
+
["hasmethod", "function", "hasmethod(f, t::Type{<:Tuple}[, kwnames]; world=get_world_counter())::Bool"],
|
|
652
|
+
["hasproperty", "function", "hasproperty(x, s::Symbol)"],
|
|
653
|
+
["hcat", "function", "hcat(A...)"],
|
|
654
|
+
["hex2bytes", "function", "hex2bytes(itr)"],
|
|
655
|
+
["hex2bytes!", "function", "hex2bytes!(dest::AbstractVector{UInt8}, itr)"],
|
|
656
|
+
["homedir", "function", "homedir()::String"],
|
|
657
|
+
["htol", "function", "htol(x)"],
|
|
658
|
+
["hton", "function", "hton(x)"],
|
|
659
|
+
["hvcat", "function", "hvcat(blocks_per_row::Union{Tuple{Vararg{Int}}, Int}, values...)"],
|
|
660
|
+
["hvncat", "function", "hvncat(dim::Int, row_first, values...)"],
|
|
661
|
+
["hypot", "function", "hypot(x, y)"],
|
|
662
|
+
["identify_package", "function", ""],
|
|
663
|
+
["identity", "function", "identity(x)"],
|
|
664
|
+
["ifelse", "function", "ifelse(condition::Bool, x, y)"],
|
|
665
|
+
["ignorestatus", "function", "ignorestatus(command)"],
|
|
666
|
+
["im", "constant", ""],
|
|
667
|
+
["imag", "function", "imag(A::AbstractArray)"],
|
|
668
|
+
["in", "function", "in(item, collection)::Bool"],
|
|
669
|
+
["in!", "function", "in!(x, s::AbstractSet)::Bool"],
|
|
670
|
+
["include_dependency", "function", "include_dependency(path::AbstractString; track_content::Bool=true)"],
|
|
671
|
+
["include_string", "function", ""],
|
|
672
|
+
["indexin", "function", "indexin(a, b)"],
|
|
673
|
+
["insert!", "function", "insert!(a::Vector, index::Integer, item)"],
|
|
674
|
+
["insertdims", "function", "insertdims(A; dims)"],
|
|
675
|
+
["insorted", "function", "insorted(x, v; by=identity, lt=isless, rev=false)::Bool"],
|
|
676
|
+
["instances", "function", "instances(T::Type)"],
|
|
677
|
+
["intersect", "function", "intersect(s, itrs...)"],
|
|
678
|
+
["intersect!", "function", "intersect!(s::Union{AbstractSet,AbstractVector}, itrs...)"],
|
|
679
|
+
["inv", "function", "inv(x)"],
|
|
680
|
+
["invmod", "function", "invmod(n::Integer, T) where {T <: Base.BitInteger}"],
|
|
681
|
+
["invokelatest", "function", "invokelatest(f, args...; kwargs...)"],
|
|
682
|
+
["invperm", "function", "invperm(v)"],
|
|
683
|
+
["invpermute!", "function", "invpermute!(v, p)"],
|
|
684
|
+
["isa_ast_node", "function", "isa_ast_node(x)"],
|
|
685
|
+
["isabspath", "function", "isabspath(path::AbstractString)::Bool"],
|
|
686
|
+
["isabstracttype", "function", "isabstracttype(T)"],
|
|
687
|
+
["isambiguous", "function", ""],
|
|
688
|
+
["isapprox", "function", "isapprox(x; kwargs...) / ≈(x; kwargs...)"],
|
|
689
|
+
["isascii", "function", "isascii(cu::AbstractVector{CU}) where {CU <: Integer}::Bool"],
|
|
690
|
+
["isassigned", "function", "isassigned(ref::RefValue)::Bool"],
|
|
691
|
+
["isbinaryoperator", "function", "isbinaryoperator(s::Symbol)"],
|
|
692
|
+
["isbits", "function", "isbits(x)"],
|
|
693
|
+
["isbitstype", "function", "isbitstype(T)"],
|
|
694
|
+
["isblockdev", "function", "isblockdev(path)::Bool"],
|
|
695
|
+
["ischardev", "function", "ischardev(path)::Bool"],
|
|
696
|
+
["iscntrl", "function", "iscntrl(c::AbstractChar)::Bool"],
|
|
697
|
+
["isconcretetype", "function", "isconcretetype(T)"],
|
|
698
|
+
["isconst", "function", "isconst(t::DataType, s::Union{Int,Symbol})::Bool"],
|
|
699
|
+
["isdigit", "function", "isdigit(c::AbstractChar)::Bool"],
|
|
700
|
+
["isdir", "function", "isdir(path)::Bool"],
|
|
701
|
+
["isdirpath", "function", "isdirpath(path::AbstractString)::Bool"],
|
|
702
|
+
["isdisjoint", "function", "isdisjoint(x)"],
|
|
703
|
+
["isdispatchtuple", "function", "isdispatchtuple(T)"],
|
|
704
|
+
["isdone", "function", "isdone(itr, [state])::Union{Bool, Missing}"],
|
|
705
|
+
["isempty", "function", "isempty(condition)"],
|
|
706
|
+
["isequal", "function", "isequal(x)"],
|
|
707
|
+
["iseven", "function", "iseven(x::Number)::Bool"],
|
|
708
|
+
["isexecutable", "function", "isexecutable(path::String)"],
|
|
709
|
+
["isexported", "function", "isexported(m::Module, s::Symbol)::Bool"],
|
|
710
|
+
["isexpr", "function", ""],
|
|
711
|
+
["isfifo", "function", "isfifo(path)::Bool"],
|
|
712
|
+
["isfile", "function", "isfile(path)::Bool"],
|
|
713
|
+
["isfinite", "function", "isfinite(f)::Bool"],
|
|
714
|
+
["isfull", "function", "isfull(c::Channel)"],
|
|
715
|
+
["isidentifier", "function", "isidentifier(s) -> Bool"],
|
|
716
|
+
["isimmutable", "function", "isimmutable(v) -> Bool"],
|
|
717
|
+
["isinf", "function", "isinf(f)::Bool"],
|
|
718
|
+
["isinteger", "function", "isinteger(x)::Bool"],
|
|
719
|
+
["isinteractive", "function", "isinteractive()::Bool"],
|
|
720
|
+
["isless", "function", "isless(a::AbstractString, b::AbstractString)::Bool"],
|
|
721
|
+
["isletter", "function", "isletter(c::AbstractChar)::Bool"],
|
|
722
|
+
["islink", "function", "islink(path)::Bool"],
|
|
723
|
+
["islocked", "function", "islocked(lock) -> Status (Boolean)"],
|
|
724
|
+
["islowercase", "function", "islowercase(c::AbstractChar)::Bool"],
|
|
725
|
+
["ismarked", "function", "ismarked(s::IO)"],
|
|
726
|
+
["ismissing", "function", "ismissing(x)"],
|
|
727
|
+
["ismount", "function", "ismount(path)::Bool"],
|
|
728
|
+
["ismutable", "function", "ismutable(v)::Bool"],
|
|
729
|
+
["ismutabletype", "function", "ismutabletype(T)::Bool"],
|
|
730
|
+
["isnan", "function", "isnan(f)::Bool"],
|
|
731
|
+
["isnegative", "function", "isnegative(x)"],
|
|
732
|
+
["isnothing", "function", "isnothing(x)"],
|
|
733
|
+
["isnumeric", "function", "isnumeric(c::AbstractChar)::Bool"],
|
|
734
|
+
["isodd", "function", "isodd(x::Number)::Bool"],
|
|
735
|
+
["isone", "function", "isone(x)"],
|
|
736
|
+
["isopen", "function", "isopen(s::IOStream)"],
|
|
737
|
+
["isoperator", "function", "isoperator(s::Symbol)"],
|
|
738
|
+
["ispath", "function", "ispath(path)::Bool"],
|
|
739
|
+
["isperm", "function", "isperm(v)::Bool"],
|
|
740
|
+
["ispositive", "function", "ispositive(x)"],
|
|
741
|
+
["ispow2", "function", "ispow2(n::Number)::Bool"],
|
|
742
|
+
["isprimitivetype", "function", "isprimitivetype(T)::Bool"],
|
|
743
|
+
["isprint", "function", "isprint(c::AbstractChar)::Bool"],
|
|
744
|
+
["ispublic", "function", "ispublic(m::Module, s::Symbol)::Bool"],
|
|
745
|
+
["ispunct", "function", "ispunct(c::AbstractChar)::Bool"],
|
|
746
|
+
["isqrt", "function", "isqrt(n::Integer)"],
|
|
747
|
+
["isreadable", "function", "isreadable(io)::Bool"],
|
|
748
|
+
["isreadonly", "function", "isreadonly(io)::Bool"],
|
|
749
|
+
["isready", "function", "isready(c::Channel)"],
|
|
750
|
+
["isreal", "function", "isreal(x)::Bool"],
|
|
751
|
+
["issetequal", "function", "issetequal(x)"],
|
|
752
|
+
["issetgid", "function", "issetgid(path)::Bool"],
|
|
753
|
+
["issetuid", "function", "issetuid(path)::Bool"],
|
|
754
|
+
["issingletontype", "function", ""],
|
|
755
|
+
["issocket", "function", "issocket(path)::Bool"],
|
|
756
|
+
["issorted", "function", ""],
|
|
757
|
+
["isspace", "function", "isspace(c::AbstractChar)::Bool"],
|
|
758
|
+
["issticky", "function", "issticky(path)::Bool"],
|
|
759
|
+
["isstructtype", "function", "isstructtype(T)::Bool"],
|
|
760
|
+
["issubnormal", "function", "issubnormal(f)::Bool"],
|
|
761
|
+
["issubset", "function", "issubset(x)"],
|
|
762
|
+
["istaskdone", "function", "istaskdone(t::Task)::Bool"],
|
|
763
|
+
["istaskfailed", "function", "istaskfailed(t::Task)::Bool"],
|
|
764
|
+
["istaskstarted", "function", "istaskstarted(t::Task)::Bool"],
|
|
765
|
+
["istextmime", "function", "istextmime(m::MIME)"],
|
|
766
|
+
["isunaryoperator", "function", "isunaryoperator(s::Symbol)"],
|
|
767
|
+
["isunordered", "function", "isunordered(x)"],
|
|
768
|
+
["isuppercase", "function", "isuppercase(c::AbstractChar)::Bool"],
|
|
769
|
+
["isvalid", "function", "isvalid(s::AbstractString, i::Integer)::Bool"],
|
|
770
|
+
["iswritable", "function", "iswritable(io)::Bool"],
|
|
771
|
+
["isxdigit", "function", "isxdigit(c::AbstractChar)::Bool"],
|
|
772
|
+
["iszero", "function", "iszero(x)"],
|
|
773
|
+
["iterate", "function", "iterate(s::AbstractString, i::Integer)::Union{Tuple{<:AbstractChar, Int}, Nothing}"],
|
|
774
|
+
["jit_total_bytes", "function", ""],
|
|
775
|
+
["join", "function", "join([io::IO,] iterator [, delim [, last]])"],
|
|
776
|
+
["joinpath", "function", "joinpath(parts::AbstractString...)::String"],
|
|
777
|
+
["keepat!", "function", "keepat!(a::Vector, m::AbstractVector{Bool})"],
|
|
778
|
+
["keys", "function", "keys(m::RegexMatch)::Vector"],
|
|
779
|
+
["keytype", "function", "keytype(type)"],
|
|
780
|
+
["kill", "function", "kill(p::Process, signum=Base.SIGTERM)"],
|
|
781
|
+
["kron", "function", "kron(A, B)"],
|
|
782
|
+
["kron!", "function", "kron!(C, A, B)"],
|
|
783
|
+
["last", "function", "last(s::AbstractString, n::Integer)"],
|
|
784
|
+
["lastindex", "function", "lastindex(collection)::Integer"],
|
|
785
|
+
["lcm", "function", "lcm(x, y...)"],
|
|
786
|
+
["ldexp", "function", "ldexp(x, n)"],
|
|
787
|
+
["leading_ones", "function", "leading_ones(x::Integer)::Integer"],
|
|
788
|
+
["leading_zeros", "function", "leading_zeros(x::Integer)::Integer"],
|
|
789
|
+
["length", "function", "length(s::AbstractString)::Int"],
|
|
790
|
+
["link_pipe!", "function", "link_pipe!(pipe; reader_supports_async=false, writer_supports_async=false)"],
|
|
791
|
+
["load_path", "function", "load_path()"],
|
|
792
|
+
["locate_package", "function", ""],
|
|
793
|
+
["lock", "function", "lock(f::Function, l::Lockable)"],
|
|
794
|
+
["log", "function", "log(x)"],
|
|
795
|
+
["log10", "function", "log10(x)"],
|
|
796
|
+
["log1p", "function", "log1p(x)"],
|
|
797
|
+
["log2", "function", "log2(x)"],
|
|
798
|
+
["logrange", "function", "logrange(start, stop, length)"],
|
|
799
|
+
["lowercase", "function", "lowercase(s::AbstractString)"],
|
|
800
|
+
["lowercasefirst", "function", "lowercasefirst(s::AbstractString)"],
|
|
801
|
+
["lpad", "function", "lpad(s, n::Integer, p::Union{AbstractChar,AbstractString}=' ')::String"],
|
|
802
|
+
["lstat", "function", "lstat(path)"],
|
|
803
|
+
["lstrip", "function", "lstrip([pred=isspace,] str::AbstractString)::SubString"],
|
|
804
|
+
["ltoh", "function", "ltoh(x)"],
|
|
805
|
+
["ltruncate", "function", ""],
|
|
806
|
+
["macroexpand", "function", "macroexpand(m::Module, x; recursive=true, legacyscope=true)"],
|
|
807
|
+
["macroexpand!", "function", "macroexpand!(m::Module, x; recursive=true, legacyscope=false)"],
|
|
808
|
+
["map", "function", "map(f, A::AbstractArray...) -> N-array"],
|
|
809
|
+
["map!", "function", "map!(f, values(dict::AbstractDict))"],
|
|
810
|
+
["mapfoldl", "function", "mapfoldl(f, op, itr; [init])"],
|
|
811
|
+
["mapfoldr", "function", "mapfoldr(f, op, itr; [init])"],
|
|
812
|
+
["mapreduce", "function", "mapreduce(f, op, A::AbstractArray...; dims=:, [init])"],
|
|
813
|
+
["mapslices", "function", "mapslices(f, A; dims)"],
|
|
814
|
+
["mark", "function", "mark(s::IO)"],
|
|
815
|
+
["match", "function", "match(r::Regex, s::AbstractString[, idx::Integer[, addopts]])"],
|
|
816
|
+
["max", "function", "max(x, y, ...)"],
|
|
817
|
+
["maximum", "function", "maximum(f, A::AbstractArray; dims)"],
|
|
818
|
+
["maximum!", "function", "maximum!(r, A)"],
|
|
819
|
+
["maxintfloat", "function", "maxintfloat(T, S)"],
|
|
820
|
+
["memoryindex", "function", "memoryindex(ref::GenericMemoryRef)::Int"],
|
|
821
|
+
["memoryref", "function", "memoryref(::GenericMemory, index::Integer)"],
|
|
822
|
+
["merge", "function", "merge(a::NamedTuple, iterable)"],
|
|
823
|
+
["merge!", "function", "merge!(d::AbstractDict, others::AbstractDict...)"],
|
|
824
|
+
["mergewith", "function", "mergewith(combine, d::AbstractDict, others::AbstractDict...)"],
|
|
825
|
+
["mergewith!", "function", "mergewith!(combine, d::AbstractDict, others::AbstractDict...) -> d"],
|
|
826
|
+
["methods", "function", "methods(f, [types], [module])"],
|
|
827
|
+
["min", "function", "min(x, y, ...)"],
|
|
828
|
+
["minimum", "function", "minimum(f, A::AbstractArray; dims)"],
|
|
829
|
+
["minimum!", "function", "minimum!(r, A)"],
|
|
830
|
+
["minmax", "function", "minmax(x, y)"],
|
|
831
|
+
["missing", "constant", ""],
|
|
832
|
+
["mkdir", "function", "mkdir(path::AbstractString; mode::Unsigned = 0o777)"],
|
|
833
|
+
["mkpath", "function", "mkpath(path::AbstractString; mode::Unsigned = 0o777)"],
|
|
834
|
+
["mktemp", "function", "mktemp(f::Function, parent=tempdir())"],
|
|
835
|
+
["mktempdir", "function", "mktempdir(f::Function, parent=tempdir(); prefix=\"jl_\")"],
|
|
836
|
+
["mod", "function", "mod(x::Integer, T::Type{<:Integer})::T"],
|
|
837
|
+
["mod1", "function", "mod1(x, y)"],
|
|
838
|
+
["mod2pi", "function", "mod2pi(x)"],
|
|
839
|
+
["modf", "function", "modf(x)"],
|
|
840
|
+
["modifyproperty!", "function", "modifyproperty!(x, f::Symbol, op, v, order::Symbol=:not_atomic)"],
|
|
841
|
+
["moduleroot", "function", "moduleroot(m::Module)::Module"],
|
|
842
|
+
["mtime", "function", "mtime(path)"],
|
|
843
|
+
["mul_hi", "function", "mul_hi(a::T, b::T) where {T<:Base.Integer}"],
|
|
844
|
+
["muladd", "function", "muladd(x, y, z)"],
|
|
845
|
+
["mv", "function", "mv(src::AbstractString, dst::AbstractString; force::Bool=false)"],
|
|
846
|
+
["nameof", "function", "nameof(f::Function)::Symbol"],
|
|
847
|
+
["names", "function", ""],
|
|
848
|
+
["nand", "function", "nand(x, y)"],
|
|
849
|
+
["ncodeunits", "function", "ncodeunits(s::AbstractString)::Int"],
|
|
850
|
+
["ndigits", "function", "ndigits(n::Integer; base::Integer=10, pad::Integer=1)"],
|
|
851
|
+
["ndims", "function", "ndims(A::AbstractArray)::Integer"],
|
|
852
|
+
["nextfloat", "function", "nextfloat(x::AbstractFloat)"],
|
|
853
|
+
["nextind", "function", "nextind(str::AbstractString, i::Integer, n::Integer=1)::Int"],
|
|
854
|
+
["nextpow", "function", "nextpow(a, x)"],
|
|
855
|
+
["nextprod", "function", "nextprod(factors::Union{Tuple,AbstractVector}, n)"],
|
|
856
|
+
["nonmissingtype", "function", "nonmissingtype(T::Type)"],
|
|
857
|
+
["nor", "function", "nor(x, y)"],
|
|
858
|
+
["normpath", "function", "normpath(path::AbstractString, paths::AbstractString...)::String"],
|
|
859
|
+
["notify", "function", "notify(condition, val=nothing; all=true, error=false)"],
|
|
860
|
+
["notnothing", "function", "notnothing(x)"],
|
|
861
|
+
["ntoh", "function", "ntoh(x)"],
|
|
862
|
+
["ntuple", "function", "ntuple(f, ::Val{N})"],
|
|
863
|
+
["numerator", "function", "numerator(x)"],
|
|
864
|
+
["objectid", "function", "objectid(x)::UInt"],
|
|
865
|
+
["occursin", "function", "occursin(haystack)"],
|
|
866
|
+
["oftype", "function", "oftype(x, y)"],
|
|
867
|
+
["one", "function", "one(x)"],
|
|
868
|
+
["ones", "function", "ones([T=Float64,] dims::Tuple)"],
|
|
869
|
+
["oneunit", "function", "oneunit(x::T)"],
|
|
870
|
+
["only", "function", "only(x)"],
|
|
871
|
+
["open", "function", "open(f::Function, command, args...; kwargs...)"],
|
|
872
|
+
["operator_associativity", "function", "operator_associativity(s::Symbol)"],
|
|
873
|
+
["operator_precedence", "function", "operator_precedence(s::Symbol)"],
|
|
874
|
+
["operm", "function", "operm(path)"],
|
|
875
|
+
["pairs", "function", "pairs(collection)"],
|
|
876
|
+
["parent", "function", "parent(A)"],
|
|
877
|
+
["parentindices", "function", "parentindices(A)"],
|
|
878
|
+
["parentmodule", "function", "parentmodule(m::Method)::Module"],
|
|
879
|
+
["parse", "function", "parse(type, str; base)"],
|
|
880
|
+
["partialsort", "function", "partialsort(v, k, by=identity, lt=isless, rev=false, order::Base.Order.Ordering=Base.Order.Forward)"],
|
|
881
|
+
["partialsort!", "function", "partialsort!(v, k; by=identity, lt=isless, rev=false, order::Base.Order.Ordering=Base.Order.Forward)"],
|
|
882
|
+
["partialsortperm", "function", "partialsortperm(v, k; by=identity, lt=isless, rev=false)"],
|
|
883
|
+
["partialsortperm!", "function", "partialsortperm!(ix, v, k; by=identity, lt=isless, rev=false)"],
|
|
884
|
+
["pathof", "function", "pathof(m::Module)"],
|
|
885
|
+
["peek", "function", "peek(stream[, T=UInt8])"],
|
|
886
|
+
["permute!", "function", "permute!(v, p)"],
|
|
887
|
+
["permutedims", "function", "permutedims(v::AbstractVector)"],
|
|
888
|
+
["permutedims!", "function", "permutedims!(dest, src, perm)"],
|
|
889
|
+
["pi", "constant", ""],
|
|
890
|
+
["pipeline", "function", "pipeline(from, to, ...)"],
|
|
891
|
+
["pkgdir", "function", "pkgdir(m::Module[, paths::String...])"],
|
|
892
|
+
["pkgversion", "function", "pkgversion(m::Module)"],
|
|
893
|
+
["pointer", "function", "pointer(array [, index])"],
|
|
894
|
+
["pointer_from_objref", "function", "pointer_from_objref(x)"],
|
|
895
|
+
["pop!", "function", "pop!(collection, key[, default])"],
|
|
896
|
+
["popat!", "function", "popat!(a::Vector, i::Integer, [default])"],
|
|
897
|
+
["popdisplay", "function", "popdisplay()"],
|
|
898
|
+
["popfirst!", "function", "popfirst!(collection) -> item"],
|
|
899
|
+
["position", "function", "position(s)"],
|
|
900
|
+
["powermod", "function", "powermod(x::Integer, p::Integer, m)"],
|
|
901
|
+
["precision", "function", "precision(num::AbstractFloat; base::Integer=2)"],
|
|
902
|
+
["precompile", "function", "precompile(f, argtypes::Tuple{Vararg{Any}}, m::Method)"],
|
|
903
|
+
["prepend!", "function", "prepend!(a::Vector, collections...) -> collection"],
|
|
904
|
+
["prevfloat", "function", "prevfloat(x::AbstractFloat)"],
|
|
905
|
+
["prevind", "function", "prevind(str::AbstractString, i::Integer, n::Integer=1)::Int"],
|
|
906
|
+
["prevpow", "function", "prevpow(a, x)"],
|
|
907
|
+
["print", "function", "print([io::IO], xs...)"],
|
|
908
|
+
["println", "function", "println([io::IO], xs...)"],
|
|
909
|
+
["printstyled", "function", ""],
|
|
910
|
+
["process_exited", "function", "process_exited(p::Process)"],
|
|
911
|
+
["process_running", "function", "process_running(p::Process)"],
|
|
912
|
+
["prod", "function", "prod(f, A::AbstractArray; dims)"],
|
|
913
|
+
["prod!", "function", "prod!(r, A)"],
|
|
914
|
+
["promote", "function", "promote(xs...)"],
|
|
915
|
+
["promote_rule", "function", "promote_rule(type1, type2)"],
|
|
916
|
+
["promote_shape", "function", "promote_shape(s1, s2)"],
|
|
917
|
+
["promote_type", "function", "promote_type(type1, type2, ...)"],
|
|
918
|
+
["propertynames", "function", "propertynames(x, private=false)"],
|
|
919
|
+
["push!", "function", "push!(collection, items...) -> collection"],
|
|
920
|
+
["pushdisplay", "function", "pushdisplay(d::AbstractDisplay)"],
|
|
921
|
+
["pushfirst!", "function", "pushfirst!(collection, items...) -> collection"],
|
|
922
|
+
["put!", "function", "put!(c::Channel, v)"],
|
|
923
|
+
["pwd", "function", "pwd()::String"],
|
|
924
|
+
["quoted", "function", "quoted(x)"],
|
|
925
|
+
["rad2deg", "function", "rad2deg(x)"],
|
|
926
|
+
["rand", "function", "rand([rng=default_rng()], [S], [dims...])"],
|
|
927
|
+
["randn", "function", "randn([rng=default_rng()], [T=Float64], [dims...])"],
|
|
928
|
+
["range", "function", "range(start, stop, length)"],
|
|
929
|
+
["rationalize", "function", "rationalize([T<:Integer=Int,] x; tol::Real=eps(x))"],
|
|
930
|
+
["read", "function", "read(command::Cmd, String)"],
|
|
931
|
+
["read!", "function", "read!(stream::IO, array::AbstractArray)"],
|
|
932
|
+
["readavailable", "function", "readavailable(stream)"],
|
|
933
|
+
["readbytes!", "function", "readbytes!(stream::IOStream, b::AbstractVector{UInt8}, nb=length(b); all::Bool=true)"],
|
|
934
|
+
["readchomp", "function", "readchomp(x)"],
|
|
935
|
+
["readdir", "function", "readdir(dir::AbstractString=pwd();"],
|
|
936
|
+
["readeach", "function", "readeach(io::IO, T)"],
|
|
937
|
+
["readline", "function", "readline(io::IO=stdin; keep::Bool=false)"],
|
|
938
|
+
["readlines", "function", "readlines(io::IO=stdin; keep::Bool=false)"],
|
|
939
|
+
["readlink", "function", "readlink(path::AbstractString)::String"],
|
|
940
|
+
["readuntil", "function", "readuntil(stream::IO, delim; keep::Bool = false)"],
|
|
941
|
+
["real", "function", "real(A::AbstractArray)"],
|
|
942
|
+
["realpath", "function", "realpath(path::AbstractString)::String"],
|
|
943
|
+
["redirect_stderr", "function", "redirect_stderr(f::Function, stream)"],
|
|
944
|
+
["redirect_stdin", "function", "redirect_stdin(f::Function, stream)"],
|
|
945
|
+
["redirect_stdio", "function", "redirect_stdio(f; stdin=nothing, stderr=nothing, stdout=nothing)"],
|
|
946
|
+
["redirect_stdout", "function", "redirect_stdout(f::Function, stream)"],
|
|
947
|
+
["redisplay", "function", "redisplay(x)"],
|
|
948
|
+
["reduce", "function", "reduce(f, A::AbstractArray; dims=:, [init])"],
|
|
949
|
+
["reenable_sigint", "function", "reenable_sigint(f::Function)"],
|
|
950
|
+
["reim", "function", "reim(A::AbstractArray)"],
|
|
951
|
+
["reinterpret", "function", "reinterpret(reshape, T, A::AbstractArray{S}) -> B"],
|
|
952
|
+
["release", "function", "release(s::Semaphore)"],
|
|
953
|
+
["relpath", "function", "relpath(path::AbstractString, startpath::AbstractString = \".\")::String"],
|
|
954
|
+
["rem", "function", "rem(x, y, r::RoundingMode=RoundToZero)"],
|
|
955
|
+
["rem2pi", "function", "rem2pi(x, r::RoundingMode)"],
|
|
956
|
+
["remove_linenums!", "function", ""],
|
|
957
|
+
["rename", "function", ""],
|
|
958
|
+
["repeat", "function", "repeat(A::AbstractArray; inner=ntuple(Returns(1), ndims(A)), outer=ntuple(Returns(1), ndims(A)))"],
|
|
959
|
+
["replace", "function", "replace([io::IO], s::AbstractString, pat=>r, [pat2=>r2, ...]; [count::Integer])"],
|
|
960
|
+
["replace!", "function", "replace!(new::Union{Function, Type}, A; [count::Integer])"],
|
|
961
|
+
["replaceproperty!", "function", ""],
|
|
962
|
+
["repr", "function", "repr(x; context=nothing)"],
|
|
963
|
+
["require_one_based_indexing", "function", "require_one_based_indexing(A::AbstractArray)"],
|
|
964
|
+
["reset", "function", "reset(::Event)"],
|
|
965
|
+
["reseteof", "function", "reseteof(io)"],
|
|
966
|
+
["reshape", "function", "reshape(A, dims...)::AbstractArray"],
|
|
967
|
+
["resize!", "function", "resize!(a::Vector, n::Integer) -> a"],
|
|
968
|
+
["rest", "function", ""],
|
|
969
|
+
["rethrow", "function", "rethrow()"],
|
|
970
|
+
["retry", "function", "retry(f; delays=ExponentialBackOff(), check=nothing) -> Function"],
|
|
971
|
+
["reverse", "function", "reverse(A; dims=:)"],
|
|
972
|
+
["reverse!", "function", "reverse!(A; dims=:)"],
|
|
973
|
+
["reverseind", "function", "reverseind(v, i)"],
|
|
974
|
+
["rm", "function", "rm(path::AbstractString; force::Bool=false, recursive::Bool=false)"],
|
|
975
|
+
["rot180", "function", "rot180(A, k)"],
|
|
976
|
+
["rotl90", "function", "rotl90(A, k)"],
|
|
977
|
+
["rotr90", "function", "rotr90(A, k)"],
|
|
978
|
+
["round", "function", "round(z::Complex[, RoundingModeReal, [RoundingModeImaginary]])"],
|
|
979
|
+
["rounding", "function", "rounding(T)"],
|
|
980
|
+
["rpad", "function", "rpad(s, n::Integer, p::Union{AbstractChar,AbstractString}=' ')::String"],
|
|
981
|
+
["rsplit", "function", "rsplit(s::AbstractString; limit::Integer=0, keepempty::Bool=false)"],
|
|
982
|
+
["rstrip", "function", "rstrip([pred=isspace,] str::AbstractString)::SubString"],
|
|
983
|
+
["rtruncate", "function", ""],
|
|
984
|
+
["run", "function", "run(command, args...; wait::Bool = true)"],
|
|
985
|
+
["runtests", "function", ""],
|
|
986
|
+
["samefile", "function", "samefile(path_a, path_b)"],
|
|
987
|
+
["schedule", "function", "schedule(t::Task, [val]; error=false)"],
|
|
988
|
+
["searchsorted", "function", "searchsorted(v, x; by=identity, lt=isless, rev=false)"],
|
|
989
|
+
["searchsortedfirst", "function", "searchsortedfirst(v, x; by=identity, lt=isless, rev=false)"],
|
|
990
|
+
["searchsortedlast", "function", "searchsortedlast(v, x; by=identity, lt=isless, rev=false)"],
|
|
991
|
+
["sec", "function", "sec(x::T) where {T <: Number} -> float(T)"],
|
|
992
|
+
["secd", "function", "secd(x::T) where {T <: Number} -> float(T)"],
|
|
993
|
+
["sech", "function", "sech(x::T) where {T <: Number} -> float(T)"],
|
|
994
|
+
["seek", "function", "seek(s, pos)"],
|
|
995
|
+
["seekend", "function", "seekend(s)"],
|
|
996
|
+
["seekstart", "function", "seekstart(s)"],
|
|
997
|
+
["selectdim", "function", "selectdim(A, d::Integer, i)"],
|
|
998
|
+
["set_zero_subnormals", "function", "set_zero_subnormals(yes::Bool)::Bool"],
|
|
999
|
+
["setcpuaffinity", "function", "setcpuaffinity(original_command::Cmd, cpus) -> command::Cmd"],
|
|
1000
|
+
["setdiff", "function", "setdiff(s, itrs...)"],
|
|
1001
|
+
["setdiff!", "function", "setdiff!(s, itrs...)"],
|
|
1002
|
+
["setenv", "function", "setenv(command::Cmd, env; dir)"],
|
|
1003
|
+
["setgid", "function", "setgid(original_command::Cmd, gid) -> command::Cmd"],
|
|
1004
|
+
["setindex!", "function", "setindex!(A, X, inds...)"],
|
|
1005
|
+
["setprecision", "function", "setprecision(f::Function, [T=BigFloat,] precision::Integer; base=2)"],
|
|
1006
|
+
["setproperty!", "function", "setproperty!(value, name::Symbol, x)"],
|
|
1007
|
+
["setpropertyonce!", "function", ""],
|
|
1008
|
+
["setrounding", "function", "setrounding(f::Function, T, mode)"],
|
|
1009
|
+
["setuid", "function", "setuid(original_command::Cmd, uid) -> command::Cmd"],
|
|
1010
|
+
["shell_escape", "function", "shell_escape(args::Union{Cmd,AbstractString...}; special::AbstractString=\"\")"],
|
|
1011
|
+
["shell_escape_csh", "function", "shell_escape_csh(args::Union{Cmd,AbstractString...})"],
|
|
1012
|
+
["shell_escape_posixly", "function", "shell_escape_posixly(args::Union{Cmd,AbstractString...})"],
|
|
1013
|
+
["shell_escape_wincmd", "function", "shell_escape_wincmd(s::AbstractString)"],
|
|
1014
|
+
["shell_split", "function", "shell_split(command::AbstractString)"],
|
|
1015
|
+
["show", "function", "show([io::IO = stdout], x)"],
|
|
1016
|
+
["showable", "function", "showable(mime, x)"],
|
|
1017
|
+
["showarg", "function", "showarg(io, parent(v), false)"],
|
|
1018
|
+
["showerror", "function", "showerror(io, e)"],
|
|
1019
|
+
["sign", "function", "sign(x)"],
|
|
1020
|
+
["signbit", "function", "signbit(x)"],
|
|
1021
|
+
["signed", "function", "signed(x)"],
|
|
1022
|
+
["significand", "function", "significand(x)"],
|
|
1023
|
+
["similar", "function", "similar(storagetype, axes)"],
|
|
1024
|
+
["sin", "function", "sin(x::T) where {T <: Number} -> float(T)"],
|
|
1025
|
+
["sinc", "function", "sinc(x::T) where {T <: Number} -> float(T)"],
|
|
1026
|
+
["sincos", "function", "sincos(x::T) where T -> Tuple{float(T),float(T)}"],
|
|
1027
|
+
["sincosd", "function", "sincosd(x::T) where T -> Tuple{float(T),float(T)}"],
|
|
1028
|
+
["sincospi", "function", "sincospi(x::T) where T -> Tuple{float(T),float(T)}"],
|
|
1029
|
+
["sind", "function", "sind(x::T) where T -> float(T)"],
|
|
1030
|
+
["sinh", "function", "sinh(x)"],
|
|
1031
|
+
["sinpi", "function", "sinpi(x::T) where T -> float(T)"],
|
|
1032
|
+
["size", "function", "size(A::AbstractArray, [dim])"],
|
|
1033
|
+
["sizehint!", "function", "sizehint!(s, n; first::Bool=false, shrink::Bool=true) -> s"],
|
|
1034
|
+
["sizeof", "function", "sizeof(str::AbstractString)"],
|
|
1035
|
+
["skip", "function", "skip(s, offset)"],
|
|
1036
|
+
["skipchars", "function", "skipchars(predicate, io::IO; linecomment=nothing)"],
|
|
1037
|
+
["skipmissing", "function", "skipmissing(itr)"],
|
|
1038
|
+
["sleep", "function", "sleep(seconds)"],
|
|
1039
|
+
["something", "function", "something(x...)"],
|
|
1040
|
+
["sort", "function", "sort(v::NTuple; kws...)::NTuple"],
|
|
1041
|
+
["sort!", "function", ""],
|
|
1042
|
+
["sortperm", "function", ""],
|
|
1043
|
+
["sortperm!", "function", ""],
|
|
1044
|
+
["sortslices", "function", ""],
|
|
1045
|
+
["splat", "function", "splat(f)"],
|
|
1046
|
+
["splice!", "function", "splice!(a::Vector, indices, [replacement]) -> items"],
|
|
1047
|
+
["split", "function", "split(str::AbstractString, dlm; limit::Integer=0, keepempty::Bool=true)"],
|
|
1048
|
+
["split_rest", "function", ""],
|
|
1049
|
+
["splitdir", "function", "splitdir(path::AbstractString) -> (dir::AbstractString, file::AbstractString)"],
|
|
1050
|
+
["splitdrive", "function", "splitdrive(path::AbstractString) -> (drive::AbstractString, path::AbstractString)"],
|
|
1051
|
+
["splitext", "function", "splitext(path::AbstractString) -> (path_without_extension::String, extension::String)"],
|
|
1052
|
+
["splitpath", "function", "splitpath(path::AbstractString)::Vector{String}"],
|
|
1053
|
+
["sprint", "function", "sprint(f::Function, args...; context=nothing, sizehint=0)"],
|
|
1054
|
+
["sqrt", "function", "sqrt(x)"],
|
|
1055
|
+
["stack", "function", "stack(f, args...; [dims])"],
|
|
1056
|
+
["stacktrace", "function", "stacktrace([trace::Vector{Ptr{Cvoid}},] [c_funcs::Bool=false])::StackTrace"],
|
|
1057
|
+
["startswith", "function", "startswith(s::AbstractString, prefix::Regex)"],
|
|
1058
|
+
["stat", "function", "stat(path)"],
|
|
1059
|
+
["stderr", "constant", ""],
|
|
1060
|
+
["stdin", "constant", ""],
|
|
1061
|
+
["stdout", "constant", ""],
|
|
1062
|
+
["step", "function", "step(r)"],
|
|
1063
|
+
["stride", "function", "stride(A, k::Integer)"],
|
|
1064
|
+
["strides", "function", "strides(A)"],
|
|
1065
|
+
["string", "function", "string(xs...)"],
|
|
1066
|
+
["strip", "function", "strip([pred=isspace,] str::AbstractString)::SubString"],
|
|
1067
|
+
["success", "function", "success(command)"],
|
|
1068
|
+
["sum", "function", "sum(f, A::AbstractArray; dims)"],
|
|
1069
|
+
["sum!", "function", "sum!(r, A)"],
|
|
1070
|
+
["summary", "function", "summary(io::IO, x)"],
|
|
1071
|
+
["summarysize", "function", ""],
|
|
1072
|
+
["supertype", "function", "supertype(T::Union{DataType, UnionAll})"],
|
|
1073
|
+
["swapproperty!", "function", "swapproperty!(x, f::Symbol, v, order::Symbol=:not_atomic)"],
|
|
1074
|
+
["symdiff", "function", "symdiff(s, itrs...)"],
|
|
1075
|
+
["symdiff!", "function", "symdiff!(s::Union{AbstractSet,AbstractVector}, itrs...)"],
|
|
1076
|
+
["symlink", "function", "symlink(target::AbstractString, link::AbstractString; dir_target = false)"],
|
|
1077
|
+
["systemerror", "function", "systemerror(sysfunc[, errno::Cint=Libc.errno()])"],
|
|
1078
|
+
["tail", "function", "tail(x::Tuple)::Tuple"],
|
|
1079
|
+
["take!", "function", "take!(c::Channel)"],
|
|
1080
|
+
["takestring!", "function", "takestring!(io::IOBuffer)::String"],
|
|
1081
|
+
["tan", "function", "tan(x::T) where {T <: Number} -> float(T)"],
|
|
1082
|
+
["tand", "function", "tand(x::T) where T -> float(T)"],
|
|
1083
|
+
["tanh", "function", "tanh(x)"],
|
|
1084
|
+
["tanpi", "function", "tanpi(x::T) where T -> float(T)"],
|
|
1085
|
+
["task_local_storage", "function", "task_local_storage(body, key, value)"],
|
|
1086
|
+
["tempdir", "function", "tempdir()"],
|
|
1087
|
+
["tempname", "function", "tempname(parent=tempdir(); cleanup=true, suffix=\"\")::String"],
|
|
1088
|
+
["text_colors", "constant", ""],
|
|
1089
|
+
["textwidth", "function", "textwidth(s::AbstractString)"],
|
|
1090
|
+
["thisind", "function", "thisind(s::AbstractString, i::Integer)::Int"],
|
|
1091
|
+
["time", "function", "time()::Float64"],
|
|
1092
|
+
["time_ns", "function", "time_ns()::UInt64"],
|
|
1093
|
+
["timedwait", "function", "timedwait(testcb, timeout::Real; pollint::Real=0.1)"],
|
|
1094
|
+
["titlecase", "function", "titlecase(s::AbstractString; [wordsep::Function], strict::Bool=true)::String"],
|
|
1095
|
+
["to_index", "function", "to_index(i)"],
|
|
1096
|
+
["to_indices", "function", "to_indices(A, I::Tuple)"],
|
|
1097
|
+
["touch", "function", "touch(path::AbstractString)"],
|
|
1098
|
+
["trailing_ones", "function", "trailing_ones(x::Integer)::Integer"],
|
|
1099
|
+
["trailing_zeros", "function", "trailing_zeros(x::Integer)::Integer"],
|
|
1100
|
+
["transcode", "function", "transcode(T, src)"],
|
|
1101
|
+
["transpose", "function", "transpose(A)"],
|
|
1102
|
+
["trues", "function", "trues(dims)"],
|
|
1103
|
+
["trunc", "function", "trunc([T,] x)"],
|
|
1104
|
+
["truncate", "function", "truncate(file, n)"],
|
|
1105
|
+
["trylock", "function", "trylock(lock) -> Success (Boolean)"],
|
|
1106
|
+
["tryparse", "function", "tryparse(type, str; base)"],
|
|
1107
|
+
["typeintersect", "function", "typeintersect(T::Type, S::Type)"],
|
|
1108
|
+
["typejoin", "function", "typejoin(T, S, ...)"],
|
|
1109
|
+
["typemax", "function", "typemax(T)"],
|
|
1110
|
+
["typemin", "function", "typemin(T)"],
|
|
1111
|
+
["uabs", "function", ""],
|
|
1112
|
+
["unescape_string", "function", "unescape_string(str::AbstractString, keep = ())::AbstractString"],
|
|
1113
|
+
["union", "function", "union(s, itrs...)"],
|
|
1114
|
+
["union!", "function", "union!(s::Union{AbstractSet,AbstractVector}, itrs...)"],
|
|
1115
|
+
["unique", "function", "unique(A::AbstractArray; dims::Int)"],
|
|
1116
|
+
["unique!", "function", "unique!(A::AbstractVector)"],
|
|
1117
|
+
["unlock", "function", "unlock(lock)"],
|
|
1118
|
+
["unmark", "function", "unmark(s::IO)"],
|
|
1119
|
+
["unsafe_convert", "function", "unsafe_convert(T, x)"],
|
|
1120
|
+
["unsafe_copyto!", "function", "unsafe_copyto!(dest::Array, doffs, src::Array, soffs, n)"],
|
|
1121
|
+
["unsafe_load", "function", "unsafe_load(p::Ptr{T}, i::Integer=1)"],
|
|
1122
|
+
["unsafe_modify!", "function", "unsafe_modify!(p::Ptr{T}, op, x, [order::Symbol])::Pair"],
|
|
1123
|
+
["unsafe_pointer_to_objref", "function", "unsafe_pointer_to_objref(p::Ptr)"],
|
|
1124
|
+
["unsafe_read", "function", "unsafe_read(io::IO, ref, nbytes::UInt)"],
|
|
1125
|
+
["unsafe_replace!", "function", "unsafe_replace!(p::Ptr{T}, expected, desired,"],
|
|
1126
|
+
["unsafe_store!", "function", "unsafe_store!(p::Ptr{T}, x, i::Integer=1)"],
|
|
1127
|
+
["unsafe_string", "function", "unsafe_string(p::Ptr{T}, [length::Integer]) where {T<:Union{UInt16,UInt32,Cwchar_t}}"],
|
|
1128
|
+
["unsafe_swap!", "function", "unsafe_swap!(p::Ptr{T}, x, [order::Symbol])"],
|
|
1129
|
+
["unsafe_trunc", "function", "unsafe_trunc(T, x)"],
|
|
1130
|
+
["unsafe_wrap", "function", "unsafe_wrap(Array, pointer::Ptr{T}, dims; own = false)"],
|
|
1131
|
+
["unsafe_write", "function", "unsafe_write(io::IO, ref, nbytes::UInt)"],
|
|
1132
|
+
["unsigned", "function", "unsigned(x)"],
|
|
1133
|
+
["uperm", "function", "uperm(path)"],
|
|
1134
|
+
["uppercase", "function", "uppercase(s::AbstractString)"],
|
|
1135
|
+
["uppercasefirst", "function", "uppercasefirst(s::AbstractString)::String"],
|
|
1136
|
+
["valtype", "function", "valtype(type)"],
|
|
1137
|
+
["values", "function", "values(a::AbstractDict)"],
|
|
1138
|
+
["vcat", "function", "vcat(A...)"],
|
|
1139
|
+
["vec", "function", "vec(a::AbstractArray)::AbstractVector"],
|
|
1140
|
+
["vect", "function", "vect(X...)"],
|
|
1141
|
+
["view", "function", "view(A, inds...)"],
|
|
1142
|
+
["wait", "function", "wait(t::Task; throw=true)"],
|
|
1143
|
+
["waitall", "function", "waitall(tasks; failfast=true, throw=true) -> (done_tasks, remaining_tasks)"],
|
|
1144
|
+
["waitany", "function", "waitany(tasks; throw=true) -> (done_tasks, remaining_tasks)"],
|
|
1145
|
+
["walkdir", "function", "walkdir(dir = pwd(); topdown=true, follow_symlinks=false, onerror=throw)"],
|
|
1146
|
+
["which", "function", "which(module, symbol)"],
|
|
1147
|
+
["widemul", "function", "widemul(x, y)"],
|
|
1148
|
+
["widen", "function", "widen(x)"],
|
|
1149
|
+
["windowserror", "function", "windowserror(sysfunc[, code::UInt32=Libc.GetLastError()])"],
|
|
1150
|
+
["withenv", "function", "withenv(f, kv::Pair...)"],
|
|
1151
|
+
["write", "function", "write(filename::AbstractString, content)"],
|
|
1152
|
+
["xor", "function", "xor(x, y)"],
|
|
1153
|
+
["yield", "function", "yield(t::Task, arg = nothing)"],
|
|
1154
|
+
["yieldto", "function", "yieldto(t::Task, arg = nothing)"],
|
|
1155
|
+
["zero", "function", "zero(x)"],
|
|
1156
|
+
["zeros", "function", "zeros([T=Float64,] dims::Tuple)"],
|
|
1157
|
+
["zip", "function", "zip(iters...)"],
|
|
1158
|
+
["π", "constant", ""],
|
|
1159
|
+
["ℯ", "constant", ""],
|
|
1160
|
+
];
|
|
1161
|
+
// The names each standard library exports, offered once the file has `using <Library>`.
|
|
1162
|
+
const stdlibNames = {
|
|
1163
|
+
Dates: [
|
|
1164
|
+
["@dateformat_str", "macro", ""],
|
|
1165
|
+
["Apr", "constant", ""],
|
|
1166
|
+
["April", "constant", ""],
|
|
1167
|
+
["Aug", "constant", ""],
|
|
1168
|
+
["August", "constant", ""],
|
|
1169
|
+
["Date", "type", "Date(y, [m, d])::Date"],
|
|
1170
|
+
["DateFormat", "type", "DateFormat(format::AbstractString, locale=\"english\")"],
|
|
1171
|
+
["DatePeriod", "type", ""],
|
|
1172
|
+
["DateTime", "type", "DateTime(y, [m, d, h, mi, s, ms])::DateTime"],
|
|
1173
|
+
["Day", "type", "Day(dt::Date)"],
|
|
1174
|
+
["Dec", "constant", ""],
|
|
1175
|
+
["December", "constant", ""],
|
|
1176
|
+
["Feb", "constant", ""],
|
|
1177
|
+
["February", "constant", ""],
|
|
1178
|
+
["Fri", "constant", ""],
|
|
1179
|
+
["Friday", "constant", ""],
|
|
1180
|
+
["Hour", "type", "Hour(dt::Time)"],
|
|
1181
|
+
["ISODateFormat", "constant", ""],
|
|
1182
|
+
["ISODateTimeFormat", "constant", ""],
|
|
1183
|
+
["ISOTimeFormat", "constant", ""],
|
|
1184
|
+
["Jan", "constant", ""],
|
|
1185
|
+
["January", "constant", ""],
|
|
1186
|
+
["Jul", "constant", ""],
|
|
1187
|
+
["July", "constant", ""],
|
|
1188
|
+
["Jun", "constant", ""],
|
|
1189
|
+
["June", "constant", ""],
|
|
1190
|
+
["Mar", "constant", ""],
|
|
1191
|
+
["March", "constant", ""],
|
|
1192
|
+
["May", "constant", ""],
|
|
1193
|
+
["Microsecond", "type", "Microsecond(dt::Time)"],
|
|
1194
|
+
["Millisecond", "type", "Millisecond(dt::Time)"],
|
|
1195
|
+
["Minute", "type", "Minute(dt::Time)"],
|
|
1196
|
+
["Mon", "constant", ""],
|
|
1197
|
+
["Monday", "constant", ""],
|
|
1198
|
+
["Month", "type", "Month(dt::Date)"],
|
|
1199
|
+
["Nanosecond", "type", "Nanosecond(dt::Time)"],
|
|
1200
|
+
["Nov", "constant", ""],
|
|
1201
|
+
["November", "constant", ""],
|
|
1202
|
+
["Oct", "constant", ""],
|
|
1203
|
+
["October", "constant", ""],
|
|
1204
|
+
["Period", "type", ""],
|
|
1205
|
+
["Quarter", "type", "Quarter(dt::Date)"],
|
|
1206
|
+
["RFC1123Format", "constant", ""],
|
|
1207
|
+
["Sat", "constant", ""],
|
|
1208
|
+
["Saturday", "constant", ""],
|
|
1209
|
+
["Second", "type", "Second(dt::Time)"],
|
|
1210
|
+
["Sep", "constant", ""],
|
|
1211
|
+
["September", "constant", ""],
|
|
1212
|
+
["Sun", "constant", ""],
|
|
1213
|
+
["Sunday", "constant", ""],
|
|
1214
|
+
["Thu", "constant", ""],
|
|
1215
|
+
["Thursday", "constant", ""],
|
|
1216
|
+
["Time", "type", "Time(h, [mi, s, ms, us, ns])::Time"],
|
|
1217
|
+
["TimePeriod", "type", ""],
|
|
1218
|
+
["TimeType", "type", ""],
|
|
1219
|
+
["TimeZone", "type", ""],
|
|
1220
|
+
["Tue", "constant", ""],
|
|
1221
|
+
["Tuesday", "constant", ""],
|
|
1222
|
+
["UTC", "type", ""],
|
|
1223
|
+
["Wed", "constant", ""],
|
|
1224
|
+
["Wednesday", "constant", ""],
|
|
1225
|
+
["Week", "type", "Week(dt::Date)"],
|
|
1226
|
+
["Year", "type", "Year(dt::Date)"],
|
|
1227
|
+
["canonicalize", "function", "canonicalize(::CompoundPeriod)::CompoundPeriod"],
|
|
1228
|
+
["datetime2julian", "function", "datetime2julian(dt::DateTime)::Float64"],
|
|
1229
|
+
["datetime2rata", "function", "datetime2rata(dt::TimeType)::Int64"],
|
|
1230
|
+
["datetime2unix", "function", "datetime2unix(dt::DateTime)::Float64"],
|
|
1231
|
+
["day", "function", "day(dt::TimeType)::Int64"],
|
|
1232
|
+
["dayabbr", "function", "dayabbr(dt::TimeType; locale=\"english\")::String"],
|
|
1233
|
+
["dayname", "function", "dayname(dt::TimeType; locale=\"english\")::String"],
|
|
1234
|
+
["dayofmonth", "function", "dayofmonth(dt::TimeType)::Int64"],
|
|
1235
|
+
["dayofquarter", "function", "dayofquarter(dt::TimeType)::Int"],
|
|
1236
|
+
["dayofweek", "function", "dayofweek(dt::TimeType)::Int64"],
|
|
1237
|
+
["dayofweekofmonth", "function", "dayofweekofmonth(dt::TimeType)::Int"],
|
|
1238
|
+
["dayofyear", "function", "dayofyear(dt::TimeType)::Int"],
|
|
1239
|
+
["daysinmonth", "function", "daysinmonth(dt::TimeType)::Int"],
|
|
1240
|
+
["daysinyear", "function", "daysinyear(dt::TimeType)::Int"],
|
|
1241
|
+
["daysofweekinmonth", "function", "daysofweekinmonth(dt::TimeType)::Int"],
|
|
1242
|
+
["firstdayofmonth", "function", "firstdayofmonth(dt::TimeType)::TimeType"],
|
|
1243
|
+
["firstdayofquarter", "function", "firstdayofquarter(dt::TimeType)::TimeType"],
|
|
1244
|
+
["firstdayofweek", "function", "firstdayofweek(dt::TimeType)::TimeType"],
|
|
1245
|
+
["firstdayofyear", "function", "firstdayofyear(dt::TimeType)::TimeType"],
|
|
1246
|
+
["format", "function", "format(io::IO, tok::AbstractDateToken, dt::TimeType, locale)"],
|
|
1247
|
+
["hour", "function", "hour(dt::DateTime)::Int64"],
|
|
1248
|
+
["isleapyear", "function", "isleapyear(dt::TimeType)::Bool"],
|
|
1249
|
+
["isoweekdate", "function", ""],
|
|
1250
|
+
["isoyear", "function", ""],
|
|
1251
|
+
["julian2datetime", "function", "julian2datetime(julian_days)::DateTime"],
|
|
1252
|
+
["lastdayofmonth", "function", "lastdayofmonth(dt::TimeType)::TimeType"],
|
|
1253
|
+
["lastdayofquarter", "function", "lastdayofquarter(dt::TimeType)::TimeType"],
|
|
1254
|
+
["lastdayofweek", "function", "lastdayofweek(dt::TimeType)::TimeType"],
|
|
1255
|
+
["lastdayofyear", "function", "lastdayofyear(dt::TimeType)::TimeType"],
|
|
1256
|
+
["microsecond", "function", "microsecond(t::Time)::Int64"],
|
|
1257
|
+
["millisecond", "function", "millisecond(dt::DateTime)::Int64"],
|
|
1258
|
+
["minute", "function", "minute(dt::DateTime)::Int64"],
|
|
1259
|
+
["month", "function", "month(dt::TimeType)::Int64"],
|
|
1260
|
+
["monthabbr", "function", "monthabbr(dt::TimeType; locale=\"english\")::String"],
|
|
1261
|
+
["monthday", "function", "monthday(dt::TimeType) -> (Int64, Int64)"],
|
|
1262
|
+
["monthname", "function", "monthname(dt::TimeType; locale=\"english\")::String"],
|
|
1263
|
+
["nanosecond", "function", "nanosecond(t::Time)::Int64"],
|
|
1264
|
+
["now", "function", "now()::DateTime"],
|
|
1265
|
+
["quarterofyear", "function", "quarterofyear(dt::TimeType)::Int"],
|
|
1266
|
+
["rata2datetime", "function", "rata2datetime(days)::DateTime"],
|
|
1267
|
+
["second", "function", "second(dt::DateTime)::Int64"],
|
|
1268
|
+
["today", "function", "today()::Date"],
|
|
1269
|
+
["tofirst", "function", "tofirst(dt::TimeType, dow::Int; of=Month)::TimeType"],
|
|
1270
|
+
["tolast", "function", "tolast(dt::TimeType, dow::Int; of=Month)::TimeType"],
|
|
1271
|
+
["tonext", "function", "tonext(dt::TimeType, dow::Int; same::Bool=false)::TimeType"],
|
|
1272
|
+
["toprev", "function", "toprev(dt::TimeType, dow::Int; same::Bool=false)::TimeType"],
|
|
1273
|
+
["unix2datetime", "function", "unix2datetime(x)::DateTime"],
|
|
1274
|
+
["week", "function", "week(dt::TimeType)::Int64"],
|
|
1275
|
+
["weeksinyear", "function", ""],
|
|
1276
|
+
["year", "function", "year(dt::TimeType)::Int64"],
|
|
1277
|
+
["yearmonth", "function", "yearmonth(dt::TimeType) -> (Int64, Int64)"],
|
|
1278
|
+
["yearmonthday", "function", "yearmonthday(dt::TimeType) -> (Int64, Int64, Int64)"],
|
|
1279
|
+
],
|
|
1280
|
+
Printf: [
|
|
1281
|
+
["@printf", "macro", "@printf([io::IO], \"%Fmt\", args...)"],
|
|
1282
|
+
["@sprintf", "macro", "@sprintf(\"%Fmt\", args...)"],
|
|
1283
|
+
["Format", "type", ""],
|
|
1284
|
+
["format", "function", ""],
|
|
1285
|
+
],
|
|
1286
|
+
Random: [
|
|
1287
|
+
["AbstractRNG", "type", ""],
|
|
1288
|
+
["MersenneTwister", "type", "MersenneTwister(seed)"],
|
|
1289
|
+
["RandomDevice", "type", "RandomDevice()"],
|
|
1290
|
+
["Sampler", "type", "Sampler(rng, x, repetition = Val(Inf))"],
|
|
1291
|
+
["SamplerSimple", "type", "SamplerSimple(x, data)"],
|
|
1292
|
+
["SamplerTrivial", "type", "SamplerTrivial(x)"],
|
|
1293
|
+
["SamplerType", "type", "SamplerType{T}()"],
|
|
1294
|
+
["TaskLocalRNG", "type", ""],
|
|
1295
|
+
["Xoshiro", "type", "Xoshiro(seed::Union{Integer, AbstractString})"],
|
|
1296
|
+
["bitrand", "function", "bitrand([rng=default_rng()], [dims...])"],
|
|
1297
|
+
["default_rng", "function", ""],
|
|
1298
|
+
["rand!", "function", "rand!([rng=default_rng()], A, [S=eltype(A)])"],
|
|
1299
|
+
["randcycle", "function", "randcycle([rng=default_rng(),] n::Integer)"],
|
|
1300
|
+
["randcycle!", "function", "randcycle!([rng=default_rng(),] A::AbstractArray{<:Integer})"],
|
|
1301
|
+
["randexp", "function", "randexp([rng=default_rng()], [T=Float64], [dims...])"],
|
|
1302
|
+
["randexp!", "function", "randexp!([rng=default_rng()], A::AbstractArray) -> A"],
|
|
1303
|
+
["randn!", "function", "randn!([rng=default_rng()], A::AbstractArray) -> A"],
|
|
1304
|
+
["randperm", "function", "randperm([rng=default_rng(),] n::Integer)"],
|
|
1305
|
+
["randperm!", "function", "randperm!([rng=default_rng(),] A::AbstractArray{<:Integer})"],
|
|
1306
|
+
["randstring", "function", "randstring([rng=default_rng()], [chars], [len=8])"],
|
|
1307
|
+
["randsubseq", "function", "randsubseq([rng=default_rng(),] A, p) -> Vector"],
|
|
1308
|
+
["randsubseq!", "function", "randsubseq!([rng=default_rng(),] S, A, p)"],
|
|
1309
|
+
["seed!", "function", "seed!([rng=default_rng()], seed) -> rng"],
|
|
1310
|
+
["shuffle", "function", "shuffle([rng=default_rng(),] v::Union{NTuple,AbstractArray})"],
|
|
1311
|
+
["shuffle!", "function", "shuffle!([rng=default_rng(),] v::AbstractArray)"],
|
|
1312
|
+
],
|
|
1313
|
+
Statistics: [
|
|
1314
|
+
["cor", "function", "cor(x::AbstractVector)"],
|
|
1315
|
+
["cov", "function", "cov(x::AbstractVector; corrected::Bool=true)"],
|
|
1316
|
+
["mean", "function", "mean(itr)"],
|
|
1317
|
+
["mean!", "function", "mean!(r, v)"],
|
|
1318
|
+
["median", "function", "median(itr)"],
|
|
1319
|
+
["median!", "function", "median!(v)"],
|
|
1320
|
+
["middle", "function", "middle(x)"],
|
|
1321
|
+
["quantile", "function", "quantile(itr, p; sorted=false, alpha::Real=1.0, beta::Real=alpha)"],
|
|
1322
|
+
["quantile!", "function", ""],
|
|
1323
|
+
["std", "function", "std(itr; corrected::Bool=true, mean=nothing[, dims])"],
|
|
1324
|
+
["stdm", "function", "stdm(itr, mean; corrected::Bool=true[, dims])"],
|
|
1325
|
+
["var", "function", "var(itr; corrected::Bool=true, mean=nothing[, dims])"],
|
|
1326
|
+
["varm", "function", "varm(itr, mean; dims, corrected::Bool=true)"],
|
|
1327
|
+
],
|
|
1328
|
+
LinearAlgebra: [
|
|
1329
|
+
["AbstractTriangular", "type", ""],
|
|
1330
|
+
["Adjoint", "type", ""],
|
|
1331
|
+
["BLAS", "namespace", ""],
|
|
1332
|
+
["Bidiagonal", "type", "Bidiagonal(dv::V, ev::V, uplo::Symbol) where V <: AbstractVector"],
|
|
1333
|
+
["BunchKaufman", "type", "BunchKaufman{Float64, Matrix{Float64}, Vector{Int64}}"],
|
|
1334
|
+
["Cholesky", "type", "Cholesky{Float64, Matrix{Float64}}"],
|
|
1335
|
+
["CholeskyPivoted", "type", "CholeskyPivoted{Float64, Matrix{Float64}, Vector{Int64}}"],
|
|
1336
|
+
["ColumnNorm", "type", ""],
|
|
1337
|
+
["Diagonal", "type", "Diagonal(V::AbstractVector)"],
|
|
1338
|
+
["Eigen", "type", "Eigen{Float64, Float64, Matrix{Float64}, Vector{Float64}}"],
|
|
1339
|
+
["Factorization", "type", ""],
|
|
1340
|
+
["GeneralizedEigen", "type", "GeneralizedEigen{ComplexF64, ComplexF64, Matrix{ComplexF64}, Vector{ComplexF64}}"],
|
|
1341
|
+
["GeneralizedSVD", "type", "GeneralizedSVD{Float64, Matrix{Float64}, Float64, Vector{Float64}}"],
|
|
1342
|
+
["GeneralizedSchur", "type", ""],
|
|
1343
|
+
["Givens", "type", ""],
|
|
1344
|
+
["Hermitian", "type", "Hermitian(A::AbstractMatrix, uplo::Symbol=:U)"],
|
|
1345
|
+
["Hessenberg", "type", ""],
|
|
1346
|
+
["I", "constant", ""],
|
|
1347
|
+
["LAPACK", "namespace", ""],
|
|
1348
|
+
["LAPACKException", "type", ""],
|
|
1349
|
+
["LDLt", "type", "LDLt{Float64, SymTridiagonal{Float64, Vector{Float64}}}"],
|
|
1350
|
+
["LQ", "type", "LQ{Float64, Matrix{Float64}, Vector{Float64}}"],
|
|
1351
|
+
["LU", "type", "LU{Float64, Matrix{Float64}, Vector{Int64}}"],
|
|
1352
|
+
["LowerTriangular", "type", "LowerTriangular(A::AbstractMatrix)"],
|
|
1353
|
+
["NoPivot", "type", ""],
|
|
1354
|
+
["PosDefException", "type", ""],
|
|
1355
|
+
["QR", "type", ""],
|
|
1356
|
+
["QRPivoted", "type", ""],
|
|
1357
|
+
["RankDeficientException", "type", ""],
|
|
1358
|
+
["RowMaximum", "type", ""],
|
|
1359
|
+
["RowNonZero", "type", ""],
|
|
1360
|
+
["SVD", "type", "SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}"],
|
|
1361
|
+
["Schur", "type", "Schur{Float64, Matrix{Float64}, Vector{Float64}}"],
|
|
1362
|
+
["SingularException", "type", ""],
|
|
1363
|
+
["SymTridiagonal", "type", "SymTridiagonal(dv::V, ev::V) where V <: AbstractVector"],
|
|
1364
|
+
["Symmetric", "type", "Symmetric(A::AbstractMatrix, uplo::Symbol=:U)"],
|
|
1365
|
+
["Transpose", "type", ""],
|
|
1366
|
+
["Tridiagonal", "type", "Tridiagonal(dl::V, d::V, du::V) where V <: AbstractVector"],
|
|
1367
|
+
["UniformScaling", "type", "UniformScaling{T<:Number}"],
|
|
1368
|
+
["UnitLowerTriangular", "type", "UnitLowerTriangular(A::AbstractMatrix)"],
|
|
1369
|
+
["UnitUpperTriangular", "type", "UnitUpperTriangular(A::AbstractMatrix)"],
|
|
1370
|
+
["UpperHessenberg", "type", "UpperHessenberg(A::AbstractMatrix)"],
|
|
1371
|
+
["UpperTriangular", "type", "UpperTriangular(A::AbstractMatrix)"],
|
|
1372
|
+
["ZeroPivotException", "type", ""],
|
|
1373
|
+
["adjoint!", "function", "adjoint!(dest,src)"],
|
|
1374
|
+
["axpby!", "function", "axpby!(α, x::AbstractArray, β, y::AbstractArray)"],
|
|
1375
|
+
["axpy!", "function", "axpy!(α, x::AbstractArray, y::AbstractArray)"],
|
|
1376
|
+
["bunchkaufman", "function", "bunchkaufman(A, rook::Bool=false; check = true) -> S::BunchKaufman"],
|
|
1377
|
+
["bunchkaufman!", "function", "bunchkaufman!(A, rook::Bool=false; check = true) -> BunchKaufman"],
|
|
1378
|
+
["checksquare", "function", ""],
|
|
1379
|
+
["cholesky", "function", "cholesky(A, NoPivot(); check = true) -> Cholesky"],
|
|
1380
|
+
["cholesky!", "function", "cholesky!(A::AbstractMatrix, NoPivot(); check = true) -> Cholesky"],
|
|
1381
|
+
["cond", "function", "cond(M, p::Real=2)"],
|
|
1382
|
+
["condskeel", "function", "condskeel(M, [x, p::Real=Inf])"],
|
|
1383
|
+
["convert", "function", "convert(T, x)"],
|
|
1384
|
+
["copy_adjoint!", "function", "copy_adjoint!(B::AbstractVecOrMat, ir_dest::AbstractRange{Int}, jr_dest::AbstractRange{Int},"],
|
|
1385
|
+
["copy_transpose!", "function", "copy_transpose!(B::AbstractVecOrMat, ir_dest::AbstractRange{Int}, jr_dest::AbstractRange{Int},"],
|
|
1386
|
+
["copytrito!", "function", "copytrito!(B, A, uplo) -> B"],
|
|
1387
|
+
["cross", "function", "cross(x, y)"],
|
|
1388
|
+
["det", "function", "det(M)"],
|
|
1389
|
+
["diag", "function", "diag(M, k::Integer=0)"],
|
|
1390
|
+
["diagind", "function", "diagind(M::AbstractMatrix, k::Integer = 0, indstyle::IndexStyle = IndexLinear())"],
|
|
1391
|
+
["diagm", "function", "diagm(kv::Pair{<:Integer,<:AbstractVector}...)"],
|
|
1392
|
+
["diagview", "function", "diagview(M, k::Integer=0)"],
|
|
1393
|
+
["dot", "function", "dot(x, y)"],
|
|
1394
|
+
["eigen", "function", "eigen(A; permute::Bool=true, scale::Bool=true, sortby) -> Eigen"],
|
|
1395
|
+
["eigen!", "function", "eigen!(A; permute, scale, sortby)"],
|
|
1396
|
+
["eigmax", "function", "eigmax(A; permute::Bool=true, scale::Bool=true)"],
|
|
1397
|
+
["eigmin", "function", "eigmin(A; permute::Bool=true, scale::Bool=true)"],
|
|
1398
|
+
["eigvals", "function", "eigvals(A; permute::Bool=true, scale::Bool=true, sortby) -> values"],
|
|
1399
|
+
["eigvals!", "function", "eigvals!(A; permute::Bool=true, scale::Bool=true, sortby) -> values"],
|
|
1400
|
+
["eigvecs", "function", "eigvecs(A::Union{Symmetric, Hermitian, SymTridiagonal}[, eigvals])::Matrix"],
|
|
1401
|
+
["factorize", "function", "factorize(A)"],
|
|
1402
|
+
["fillband!", "function", "fillband!(A::AbstractMatrix, x, l, u)"],
|
|
1403
|
+
["fillstored!", "function", "fillstored!(A::AbstractMatrix, x)"],
|
|
1404
|
+
["givens", "function", "givens(f::T, g::T, i1::Integer, i2::Integer) where {T} -> (G::Givens, r::T)"],
|
|
1405
|
+
["haszero", "function", "haszero(T::Type)"],
|
|
1406
|
+
["hermitian", "function", "hermitian(A, uplo::Symbol=:U)"],
|
|
1407
|
+
["hermitian_type", "function", "hermitian_type(T::Type)"],
|
|
1408
|
+
["hermitianpart", "function", "hermitianpart(A::AbstractMatrix, uplo::Symbol=:U) -> Hermitian"],
|
|
1409
|
+
["hermitianpart!", "function", "hermitianpart!(A::AbstractMatrix, uplo::Symbol=:U) -> Hermitian"],
|
|
1410
|
+
["hessenberg", "function", "hessenberg(A) -> Hessenberg"],
|
|
1411
|
+
["hessenberg!", "function", "hessenberg!(A) -> Hessenberg"],
|
|
1412
|
+
["inertia", "function", ""],
|
|
1413
|
+
["isbanded", "function", "isbanded(A::AbstractMatrix, kl::Integer, ku::Integer) -> Bool"],
|
|
1414
|
+
["isdiag", "function", "isdiag(A) -> Bool"],
|
|
1415
|
+
["ishermitian", "function", "ishermitian(A) -> Bool"],
|
|
1416
|
+
["isposdef", "function", "isposdef(A) -> Bool"],
|
|
1417
|
+
["isposdef!", "function", "isposdef!(A) -> Bool"],
|
|
1418
|
+
["issuccess", "function", "issuccess(F::Factorization)"],
|
|
1419
|
+
["issymmetric", "function", "issymmetric(A) -> Bool"],
|
|
1420
|
+
["istril", "function", "istril(A::AbstractMatrix, k::Integer = 0) -> Bool"],
|
|
1421
|
+
["istriu", "function", "istriu(A::AbstractMatrix, k::Integer = 0) -> Bool"],
|
|
1422
|
+
["ldiv!", "function", "ldiv!(Y, A, B) -> Y"],
|
|
1423
|
+
["ldlt", "function", "ldlt(S::SymTridiagonal) -> LDLt"],
|
|
1424
|
+
["ldlt!", "function", "ldlt!(S::SymTridiagonal) -> LDLt"],
|
|
1425
|
+
["lmul!", "function", "lmul!(a::Number, B::AbstractArray)"],
|
|
1426
|
+
["logabsdet", "function", "logabsdet(M)"],
|
|
1427
|
+
["logdet", "function", "logdet(M)"],
|
|
1428
|
+
["lowrankdowndate", "function", "lowrankdowndate(C::Cholesky, v::AbstractVector) -> CC::Cholesky"],
|
|
1429
|
+
["lowrankdowndate!", "function", "lowrankdowndate!(C::Cholesky, v::AbstractVector) -> CC::Cholesky"],
|
|
1430
|
+
["lowrankupdate", "function", "lowrankupdate(C::Cholesky, v::AbstractVector) -> CC::Cholesky"],
|
|
1431
|
+
["lowrankupdate!", "function", "lowrankupdate!(C::Cholesky, v::AbstractVector) -> CC::Cholesky"],
|
|
1432
|
+
["lq", "function", "lq(A) -> S::LQ"],
|
|
1433
|
+
["lq!", "function", "lq!(A) -> LQ"],
|
|
1434
|
+
["lu", "function", "lu(A, pivot = RowMaximum(); check = true, allowsingular = false) -> F::LU"],
|
|
1435
|
+
["lu!", "function", "lu!(F::LU, pivot = RowMaximum(); check = true, allowsingular = false) -> LU"],
|
|
1436
|
+
["lyap", "function", "lyap(A, C)"],
|
|
1437
|
+
["matprod_dest", "function", "matprod_dest(A, B, T)"],
|
|
1438
|
+
["mul!", "function", "mul!(Y, A, B) -> Y"],
|
|
1439
|
+
["norm", "function", "norm(A, p::Real=2)"],
|
|
1440
|
+
["normalize", "function", "normalize(a, p::Real=2)"],
|
|
1441
|
+
["normalize!", "function", "normalize!(a::AbstractArray, p::Real=2)"],
|
|
1442
|
+
["nullspace", "function", "nullspace(M; atol::Real=0, rtol::Real=atol>0 ? 0 : n*ϵ)"],
|
|
1443
|
+
["opnorm", "function", "opnorm(A::AbstractMatrix, p::Real=2)"],
|
|
1444
|
+
["ordschur", "function", "ordschur(F::Schur, select::Union{Vector{Bool},BitVector}) -> F::Schur"],
|
|
1445
|
+
["ordschur!", "function", "ordschur!(F::Schur, select::Union{Vector{Bool},BitVector}) -> F::Schur"],
|
|
1446
|
+
["peakflops", "function", ""],
|
|
1447
|
+
["pinv", "function", "pinv(M; atol::Real=0, rtol::Real=atol>0 ? 0 : n*ϵ)"],
|
|
1448
|
+
["qr", "function", "qr(A, pivot = NoPivot(); blocksize) -> F"],
|
|
1449
|
+
["qr!", "function", "qr!(A, pivot = NoPivot(); blocksize)"],
|
|
1450
|
+
["rank", "function", "rank(A::AbstractMatrix; atol::Real=0, rtol::Real=atol>0 ? 0 : n*ϵ)"],
|
|
1451
|
+
["rdiv!", "function", "rdiv!(A, B)"],
|
|
1452
|
+
["reflect!", "function", "reflect!(x, y, c, s)"],
|
|
1453
|
+
["rmul!", "function", "rmul!(A::AbstractArray, b::Number)"],
|
|
1454
|
+
["rotate!", "function", "rotate!(x, y, c, s)"],
|
|
1455
|
+
["schur", "function", "schur(A) -> F::Schur"],
|
|
1456
|
+
["schur!", "function", "schur!(A) -> F::Schur"],
|
|
1457
|
+
["svd", "function", "svd(A; full::Bool = false, alg::Algorithm = default_svd_alg(A), atol::Real=0, rtol::Real=0) -> SVD"],
|
|
1458
|
+
["svd!", "function", "svd!(A; full::Bool = false, alg::Algorithm = default_svd_alg(A), atol::Real=0, rtol::Real=0) -> SVD"],
|
|
1459
|
+
["svdvals", "function", "svdvals(A)"],
|
|
1460
|
+
["svdvals!", "function", "svdvals!(A)"],
|
|
1461
|
+
["sylvester", "function", "sylvester(A, B, C)"],
|
|
1462
|
+
["symmetric", "function", "symmetric(A, uplo::Symbol=:U)"],
|
|
1463
|
+
["symmetric_type", "function", "symmetric_type(T::Type)"],
|
|
1464
|
+
["tr", "function", "tr(M)"],
|
|
1465
|
+
["transpose!", "function", "transpose!(dest,src)"],
|
|
1466
|
+
["tril", "function", "tril(M, k::Integer = 0)"],
|
|
1467
|
+
["tril!", "function", "tril!(M)"],
|
|
1468
|
+
["triu", "function", "triu(M, k::Integer = 0)"],
|
|
1469
|
+
["triu!", "function", "triu!(M)"],
|
|
1470
|
+
["uplo", "function", ""],
|
|
1471
|
+
["zeroslike", "function", "zeroslike(::Type{M}, sz::Tuple{Integer, Vararg{Integer}}) where {M<:AbstractMatrix}"],
|
|
1472
|
+
],
|
|
1473
|
+
Unicode: [
|
|
1474
|
+
["graphemes", "function", "graphemes(s::AbstractString)::GraphemeIterator"],
|
|
1475
|
+
["isequal_normalized", "function", ""],
|
|
1476
|
+
["normalize", "function", ""],
|
|
1477
|
+
],
|
|
1478
|
+
Test: [
|
|
1479
|
+
["@inferred", "macro", "@inferred [AllowedType] f(x)"],
|
|
1480
|
+
["@test", "macro", "@test ex"],
|
|
1481
|
+
["@test_broken", "macro", "@test_broken ex"],
|
|
1482
|
+
["@test_deprecated", "macro", "@test_deprecated [pattern] expression"],
|
|
1483
|
+
["@test_logs", "macro", "@test_logs [log_patterns...] [keywords] expression"],
|
|
1484
|
+
["@test_nowarn", "macro", "@test_nowarn expr"],
|
|
1485
|
+
["@test_skip", "macro", "@test_skip ex"],
|
|
1486
|
+
["@test_throws", "macro", "@test_throws exception expr"],
|
|
1487
|
+
["@test_warn", "macro", "@test_warn msg expr"],
|
|
1488
|
+
["@testset", "macro", "@testset [CustomTestSet] [options...] [\"description\"] begin test_ex end"],
|
|
1489
|
+
["GenericArray", "type", ""],
|
|
1490
|
+
["GenericDict", "type", ""],
|
|
1491
|
+
["GenericOrder", "type", ""],
|
|
1492
|
+
["GenericSet", "type", ""],
|
|
1493
|
+
["GenericString", "type", ""],
|
|
1494
|
+
["LogRecord", "type", ""],
|
|
1495
|
+
["TestLogger", "type", "TestLogger(; min_level=Info, catch_exceptions=false)"],
|
|
1496
|
+
["TestSetException", "type", ""],
|
|
1497
|
+
["detect_ambiguities", "function", "detect_ambiguities(mod1, mod2...; recursive=false,"],
|
|
1498
|
+
["detect_unbound_args", "function", "detect_unbound_args(mod1, mod2...; recursive=false, allowed_undefineds=nothing)"],
|
|
1499
|
+
],
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
// KEYWORDS
|
|
1503
|
+
const keywordList = [
|
|
1504
|
+
"baremodule", "begin", "break", "catch", "const", "continue",
|
|
1505
|
+
"do", "else", "elseif", "end", "export", "false", "finally", "for", "function",
|
|
1506
|
+
"global", "if", "import", "in", "isa", "let", "local", "macro", "module",
|
|
1507
|
+
"nothing", "primitive type", "public", "quote", "return",
|
|
1508
|
+
"struct", "true", "try", "using", "where", "while",
|
|
1509
|
+
];
|
|
1510
|
+
const keywords = /*@__PURE__*/keywordList.map((label) => ({ label, type: "keyword" }));
|
|
1511
|
+
// SNIPPETS
|
|
1512
|
+
const snippets = [
|
|
1513
|
+
/*@__PURE__*/snippetCompletion("function ${name}(${params})\n\t${}\nend", {
|
|
1514
|
+
label: "function",
|
|
1515
|
+
detail: "definition",
|
|
1516
|
+
type: "keyword",
|
|
1517
|
+
}),
|
|
1518
|
+
/*@__PURE__*/snippetCompletion("${name}(${params}) = ${body}", {
|
|
1519
|
+
label: "f(x) =",
|
|
1520
|
+
detail: "short function definition",
|
|
1521
|
+
type: "keyword",
|
|
1522
|
+
}),
|
|
1523
|
+
/*@__PURE__*/snippetCompletion("struct ${Name}\n\t${field}\nend", {
|
|
1524
|
+
label: "struct",
|
|
1525
|
+
detail: "definition",
|
|
1526
|
+
type: "keyword",
|
|
1527
|
+
}),
|
|
1528
|
+
/*@__PURE__*/snippetCompletion("mutable struct ${Name}\n\t${field}\nend", {
|
|
1529
|
+
label: "mutable struct",
|
|
1530
|
+
detail: "definition",
|
|
1531
|
+
type: "keyword",
|
|
1532
|
+
}),
|
|
1533
|
+
/*@__PURE__*/snippetCompletion("abstract type ${Name} end", {
|
|
1534
|
+
label: "abstract type",
|
|
1535
|
+
detail: "definition",
|
|
1536
|
+
type: "keyword",
|
|
1537
|
+
}),
|
|
1538
|
+
/*@__PURE__*/snippetCompletion("module ${Name}\n\n${}\n\nend", {
|
|
1539
|
+
label: "module",
|
|
1540
|
+
detail: "definition",
|
|
1541
|
+
type: "keyword",
|
|
1542
|
+
}),
|
|
1543
|
+
/*@__PURE__*/snippetCompletion("macro ${name}(${params})\n\t${}\nend", {
|
|
1544
|
+
label: "macro",
|
|
1545
|
+
detail: "definition",
|
|
1546
|
+
type: "keyword",
|
|
1547
|
+
}),
|
|
1548
|
+
/*@__PURE__*/snippetCompletion("if ${condition}\n\t${}\nend", {
|
|
1549
|
+
label: "if",
|
|
1550
|
+
detail: "block",
|
|
1551
|
+
type: "keyword",
|
|
1552
|
+
}),
|
|
1553
|
+
/*@__PURE__*/snippetCompletion("if ${condition}\n\t${}\nelse\n\t${}\nend", {
|
|
1554
|
+
label: "if",
|
|
1555
|
+
detail: "/ else block",
|
|
1556
|
+
type: "keyword",
|
|
1557
|
+
}),
|
|
1558
|
+
/*@__PURE__*/snippetCompletion("if ${condition}\n\t${}\nelseif ${condition}\n\t${}\nelse\n\t${}\nend", {
|
|
1559
|
+
label: "if",
|
|
1560
|
+
detail: "/ elseif / else block",
|
|
1561
|
+
type: "keyword",
|
|
1562
|
+
}),
|
|
1563
|
+
/*@__PURE__*/snippetCompletion("for ${item} in ${collection}\n\t${}\nend", {
|
|
1564
|
+
label: "for",
|
|
1565
|
+
detail: "loop",
|
|
1566
|
+
type: "keyword",
|
|
1567
|
+
}),
|
|
1568
|
+
/*@__PURE__*/snippetCompletion("for (${i}, ${item}) in enumerate(${collection})\n\t${}\nend", {
|
|
1569
|
+
label: "for",
|
|
1570
|
+
detail: "enumerate loop",
|
|
1571
|
+
type: "keyword",
|
|
1572
|
+
}),
|
|
1573
|
+
/*@__PURE__*/snippetCompletion("while ${condition}\n\t${}\nend", {
|
|
1574
|
+
label: "while",
|
|
1575
|
+
detail: "loop",
|
|
1576
|
+
type: "keyword",
|
|
1577
|
+
}),
|
|
1578
|
+
/*@__PURE__*/snippetCompletion("let ${name} = ${value}\n\t${}\nend", {
|
|
1579
|
+
label: "let",
|
|
1580
|
+
detail: "block",
|
|
1581
|
+
type: "keyword",
|
|
1582
|
+
}),
|
|
1583
|
+
/*@__PURE__*/snippetCompletion("do ${x}\n\t${}\nend", {
|
|
1584
|
+
label: "do",
|
|
1585
|
+
detail: "block",
|
|
1586
|
+
type: "keyword",
|
|
1587
|
+
}),
|
|
1588
|
+
/*@__PURE__*/snippetCompletion("begin\n\t${}\nend", {
|
|
1589
|
+
label: "begin",
|
|
1590
|
+
detail: "block",
|
|
1591
|
+
type: "keyword",
|
|
1592
|
+
}),
|
|
1593
|
+
/*@__PURE__*/snippetCompletion("try\n\t${}\ncatch ${e}\n\t${}\nend", {
|
|
1594
|
+
label: "try",
|
|
1595
|
+
detail: "/ catch block",
|
|
1596
|
+
type: "keyword",
|
|
1597
|
+
}),
|
|
1598
|
+
/*@__PURE__*/snippetCompletion("[${x} for ${x} in ${collection}]", {
|
|
1599
|
+
label: "[for]",
|
|
1600
|
+
detail: "comprehension",
|
|
1601
|
+
type: "keyword",
|
|
1602
|
+
}),
|
|
1603
|
+
];
|
|
1604
|
+
// BUILT-IN NAMES
|
|
1605
|
+
const kindToType = {
|
|
1606
|
+
function: "function",
|
|
1607
|
+
macro: "function",
|
|
1608
|
+
type: "type",
|
|
1609
|
+
namespace: "namespace",
|
|
1610
|
+
constant: "constant",
|
|
1611
|
+
};
|
|
1612
|
+
function toCompletions(entries) {
|
|
1613
|
+
return entries.map(([label, kind, signature]) => {
|
|
1614
|
+
let option = { label, type: kindToType[kind] || "variable" };
|
|
1615
|
+
if (signature)
|
|
1616
|
+
option.detail = signature.slice(label.length);
|
|
1617
|
+
return option;
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
const builtins = /*@__PURE__*/toCompletions(baseNames);
|
|
1621
|
+
const stdlibCompletions = {};
|
|
1622
|
+
function stdlib(name) {
|
|
1623
|
+
if (!(name in stdlibNames))
|
|
1624
|
+
return undefined;
|
|
1625
|
+
return (stdlibCompletions[name] || (stdlibCompletions[name] = toCompletions(stdlibNames[name])));
|
|
1626
|
+
}
|
|
1627
|
+
// NAMES DEFINED IN THE FILE
|
|
1628
|
+
// Nodes that start a new scope. Names defined inside one are offered only
|
|
1629
|
+
// inside it. `if` and `begin` blocks share their parent's scope, as in Julia.
|
|
1630
|
+
const scopeNodes = /*@__PURE__*/new Set([
|
|
1631
|
+
"Program", "ModuleDefinition", "FunctionDefinition", "MacroDefinition",
|
|
1632
|
+
"StructDefinition", "LetStatement", "ForStatement", "WhileStatement",
|
|
1633
|
+
"TryStatement", "DoClause", "ArrowFunctionExpression", "Generator",
|
|
1634
|
+
"ShortFunction",
|
|
1635
|
+
]);
|
|
1636
|
+
function children(node) {
|
|
1637
|
+
let out = [];
|
|
1638
|
+
for (let ch = node.firstChild; ch; ch = ch.nextSibling)
|
|
1639
|
+
out.push(ch);
|
|
1640
|
+
return out;
|
|
1641
|
+
}
|
|
1642
|
+
// The names bound by the target of an assignment or a for loop:
|
|
1643
|
+
// `x`, `x::Int`, `(a, b)`, `a, b`, `a.b` (nothing) and so on.
|
|
1644
|
+
function targetNames(node, def, type = "variable") {
|
|
1645
|
+
switch (node.name) {
|
|
1646
|
+
case "Identifier":
|
|
1647
|
+
def(node, type);
|
|
1648
|
+
break;
|
|
1649
|
+
case "TupleExpression":
|
|
1650
|
+
case "OpenTuple":
|
|
1651
|
+
case "ParenExpression":
|
|
1652
|
+
for (let ch of children(node))
|
|
1653
|
+
targetNames(ch, def, type);
|
|
1654
|
+
break;
|
|
1655
|
+
case "BinaryExpression": // `x::Int`
|
|
1656
|
+
case "SplatExpression": // `xs...`
|
|
1657
|
+
case "KwArg": // `x = 1` as a parameter
|
|
1658
|
+
case "Assignment":
|
|
1659
|
+
if (node.firstChild)
|
|
1660
|
+
targetNames(node.firstChild, def, type);
|
|
1661
|
+
break;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
// The parameters of a function signature such as `f(a, b::Int; c = 1)`,
|
|
1665
|
+
// `f(x)::Int` or `f(x::T) where T`.
|
|
1666
|
+
function callOf(node) {
|
|
1667
|
+
while (node && node.name == "BinaryExpression")
|
|
1668
|
+
node = node.firstChild;
|
|
1669
|
+
return node && node.name == "CallExpression" ? node : null;
|
|
1670
|
+
}
|
|
1671
|
+
function signatureParams(signature, def) {
|
|
1672
|
+
// `where T` and `where {T <: Real}` declare type parameters.
|
|
1673
|
+
for (let node = signature; node && node.name == "BinaryExpression"; node = node.firstChild) {
|
|
1674
|
+
let where = node.getChild("where");
|
|
1675
|
+
let type = node.getChild("Type");
|
|
1676
|
+
if (where && type)
|
|
1677
|
+
typeParams(type, def);
|
|
1678
|
+
}
|
|
1679
|
+
let call = callOf(signature);
|
|
1680
|
+
let args = call ? call.getChild("Arguments") : signature.name == "TupleExpression" ? signature : null;
|
|
1681
|
+
if (!args)
|
|
1682
|
+
return;
|
|
1683
|
+
for (let arg of children(args)) {
|
|
1684
|
+
if (arg.name == "KeywordArguments")
|
|
1685
|
+
for (let kw of children(arg))
|
|
1686
|
+
targetNames(kw, def);
|
|
1687
|
+
else
|
|
1688
|
+
targetNames(arg, def);
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
function typeParams(node, def) {
|
|
1692
|
+
let inner = node.name == "Type" ? node.firstChild : node;
|
|
1693
|
+
if (!inner)
|
|
1694
|
+
return;
|
|
1695
|
+
if (inner.name == "BraceExpression")
|
|
1696
|
+
for (let ch of children(inner))
|
|
1697
|
+
typeParams(ch, def);
|
|
1698
|
+
else if (inner.name == "BinaryExpression" || inner.name == "UnaryExpression") {
|
|
1699
|
+
if (inner.firstChild)
|
|
1700
|
+
typeParams(inner.firstChild, def);
|
|
1701
|
+
}
|
|
1702
|
+
else if (inner.name == "Identifier")
|
|
1703
|
+
def(inner, "type");
|
|
1704
|
+
}
|
|
1705
|
+
// The name defined by a signature: `f` in `f(x)`, `Base.show(io, x)` (none).
|
|
1706
|
+
function signatureName(signature) {
|
|
1707
|
+
if (signature.name == "Identifier")
|
|
1708
|
+
return signature;
|
|
1709
|
+
let call = callOf(signature);
|
|
1710
|
+
let head = call && call.firstChild;
|
|
1711
|
+
return head && head.name == "Identifier" ? head : null;
|
|
1712
|
+
}
|
|
1713
|
+
function typeHeadName(head) {
|
|
1714
|
+
let node = head.firstChild;
|
|
1715
|
+
if (node && node.name == "TypeHeadSubtype")
|
|
1716
|
+
node = node.firstChild && node.firstChild.firstChild;
|
|
1717
|
+
if (node && node.name == "ParametrizedExpression")
|
|
1718
|
+
node = node.firstChild;
|
|
1719
|
+
return node && node.name == "Identifier" ? node : null;
|
|
1720
|
+
}
|
|
1721
|
+
// A short function definition is an assignment with a call on its left.
|
|
1722
|
+
function isShortFunction(node) {
|
|
1723
|
+
return node.name == "Assignment" && !!node.firstChild && !!callOf(node.firstChild);
|
|
1724
|
+
}
|
|
1725
|
+
// Names that a node defines in the scope that contains it.
|
|
1726
|
+
function outerDefs(node, def) {
|
|
1727
|
+
switch (node.name) {
|
|
1728
|
+
case "FunctionDefinition": {
|
|
1729
|
+
let sig = node.getChild("Signature");
|
|
1730
|
+
let name = sig && sig.firstChild && signatureName(sig.firstChild);
|
|
1731
|
+
if (name)
|
|
1732
|
+
def(name, "function");
|
|
1733
|
+
return true;
|
|
1734
|
+
}
|
|
1735
|
+
case "MacroDefinition": {
|
|
1736
|
+
let sig = node.getChild("Signature");
|
|
1737
|
+
let name = sig && sig.firstChild && signatureName(sig.firstChild);
|
|
1738
|
+
if (name)
|
|
1739
|
+
def(name, "macro");
|
|
1740
|
+
return true;
|
|
1741
|
+
}
|
|
1742
|
+
case "StructDefinition":
|
|
1743
|
+
case "AbstractDefinition":
|
|
1744
|
+
case "PrimitiveDefinition": {
|
|
1745
|
+
let head = node.getChild("TypeHead");
|
|
1746
|
+
let name = head && typeHeadName(head);
|
|
1747
|
+
if (name)
|
|
1748
|
+
def(name, "type");
|
|
1749
|
+
return true;
|
|
1750
|
+
}
|
|
1751
|
+
case "ModuleDefinition": {
|
|
1752
|
+
let name = node.getChild("Identifier");
|
|
1753
|
+
if (name)
|
|
1754
|
+
def(name, "namespace");
|
|
1755
|
+
return true;
|
|
1756
|
+
}
|
|
1757
|
+
case "Assignment": {
|
|
1758
|
+
let lhs = node.firstChild;
|
|
1759
|
+
if (!lhs)
|
|
1760
|
+
return false;
|
|
1761
|
+
if (isShortFunction(node)) {
|
|
1762
|
+
let name = signatureName(lhs);
|
|
1763
|
+
if (name)
|
|
1764
|
+
def(name, "function");
|
|
1765
|
+
return true;
|
|
1766
|
+
}
|
|
1767
|
+
targetNames(lhs, def);
|
|
1768
|
+
return false;
|
|
1769
|
+
}
|
|
1770
|
+
case "LocalStatement":
|
|
1771
|
+
case "GlobalStatement":
|
|
1772
|
+
for (let ch of children(node))
|
|
1773
|
+
targetNames(ch, def);
|
|
1774
|
+
return false;
|
|
1775
|
+
case "ConstStatement": {
|
|
1776
|
+
let a = node.lastChild;
|
|
1777
|
+
if (a && a.name == "Assignment" && a.firstChild)
|
|
1778
|
+
targetNames(a.firstChild, def, "constant");
|
|
1779
|
+
return true;
|
|
1780
|
+
}
|
|
1781
|
+
case "ImportStatement":
|
|
1782
|
+
case "UsingStatement": {
|
|
1783
|
+
let selected = node.getChild("SelectedImport");
|
|
1784
|
+
if (selected) {
|
|
1785
|
+
let paths = selected.getChildren("ImportPath");
|
|
1786
|
+
for (let path of paths.slice(1)) {
|
|
1787
|
+
let last = path.lastChild;
|
|
1788
|
+
if (last && last.name == "Identifier")
|
|
1789
|
+
def(last, "function");
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
return true;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
return false;
|
|
1796
|
+
}
|
|
1797
|
+
// Names that a scope node defines for its own body.
|
|
1798
|
+
function innerDefs(node, def) {
|
|
1799
|
+
var _a;
|
|
1800
|
+
switch (node.name) {
|
|
1801
|
+
case "FunctionDefinition":
|
|
1802
|
+
case "MacroDefinition": {
|
|
1803
|
+
let sig = node.getChild("Signature");
|
|
1804
|
+
if (sig && sig.firstChild)
|
|
1805
|
+
signatureParams(sig.firstChild, def);
|
|
1806
|
+
break;
|
|
1807
|
+
}
|
|
1808
|
+
case "Assignment": // a short function definition
|
|
1809
|
+
if (node.firstChild)
|
|
1810
|
+
signatureParams(node.firstChild, def);
|
|
1811
|
+
break;
|
|
1812
|
+
case "StructDefinition": {
|
|
1813
|
+
let head = node.getChild("TypeHead");
|
|
1814
|
+
let name = head && typeHeadName(head);
|
|
1815
|
+
let parametrized = name && name.parent;
|
|
1816
|
+
if (parametrized && parametrized.name == "ParametrizedExpression") {
|
|
1817
|
+
let brace = parametrized.getChild("BraceExpression");
|
|
1818
|
+
if (brace)
|
|
1819
|
+
typeParams(brace, def);
|
|
1820
|
+
}
|
|
1821
|
+
for (let ch of children(node)) {
|
|
1822
|
+
if (ch.name == "Identifier")
|
|
1823
|
+
def(ch, "property");
|
|
1824
|
+
else if (ch.name == "BinaryExpression" && ch.firstChild && ch.firstChild.name == "Identifier")
|
|
1825
|
+
def(ch.firstChild, "property");
|
|
1826
|
+
}
|
|
1827
|
+
break;
|
|
1828
|
+
}
|
|
1829
|
+
case "ForStatement":
|
|
1830
|
+
for (let b of node.getChildren("ForBinding"))
|
|
1831
|
+
if (b.firstChild)
|
|
1832
|
+
targetNames(b.firstChild, def);
|
|
1833
|
+
break;
|
|
1834
|
+
case "Generator":
|
|
1835
|
+
for (let gen of node.getChildren("GenFor"))
|
|
1836
|
+
for (let b of gen.getChildren("ForBinding"))
|
|
1837
|
+
if (b.firstChild)
|
|
1838
|
+
targetNames(b.firstChild, def);
|
|
1839
|
+
break;
|
|
1840
|
+
case "LetStatement":
|
|
1841
|
+
for (let b of node.getChildren("LetBinding"))
|
|
1842
|
+
if (b.firstChild)
|
|
1843
|
+
targetNames(b.firstChild, def);
|
|
1844
|
+
break;
|
|
1845
|
+
case "DoClause": {
|
|
1846
|
+
let params = node.getChild("Parameters");
|
|
1847
|
+
if (params)
|
|
1848
|
+
for (let p of children(params))
|
|
1849
|
+
targetNames(p, def);
|
|
1850
|
+
break;
|
|
1851
|
+
}
|
|
1852
|
+
case "ArrowFunctionExpression":
|
|
1853
|
+
if (node.firstChild)
|
|
1854
|
+
targetNames(node.firstChild, def);
|
|
1855
|
+
break;
|
|
1856
|
+
case "TryStatement": {
|
|
1857
|
+
let capture = (_a = node.getChild("CatchClause")) === null || _a === void 0 ? void 0 : _a.getChild("ExceptionCapture");
|
|
1858
|
+
if (capture && capture.firstChild)
|
|
1859
|
+
targetNames(capture.firstChild, def);
|
|
1860
|
+
break;
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
function isScope(node) {
|
|
1865
|
+
return scopeNodes.has(node.name) || isShortFunction(node);
|
|
1866
|
+
}
|
|
1867
|
+
const cache = /*@__PURE__*/new NodeWeakMap();
|
|
1868
|
+
// The names defined directly in a scope, without those of nested scopes.
|
|
1869
|
+
function getScope(doc, scope) {
|
|
1870
|
+
let cached = cache.get(scope);
|
|
1871
|
+
if (cached)
|
|
1872
|
+
return cached;
|
|
1873
|
+
let completions = [];
|
|
1874
|
+
let seen = new Set();
|
|
1875
|
+
let def = (node, type) => {
|
|
1876
|
+
let label = doc.sliceString(node.from, node.to);
|
|
1877
|
+
if (!label || seen.has(label))
|
|
1878
|
+
return;
|
|
1879
|
+
seen.add(label);
|
|
1880
|
+
completions.push({ label: type == "macro" ? "@" + label : label, type: type == "macro" ? "function" : type });
|
|
1881
|
+
};
|
|
1882
|
+
innerDefs(scope, def);
|
|
1883
|
+
let walk = (node) => {
|
|
1884
|
+
for (let ch of children(node))
|
|
1885
|
+
if (!outerDefs(ch, def) && !isScope(ch))
|
|
1886
|
+
walk(ch);
|
|
1887
|
+
};
|
|
1888
|
+
walk(scope);
|
|
1889
|
+
cache.set(scope, completions);
|
|
1890
|
+
return completions;
|
|
1891
|
+
}
|
|
1892
|
+
const dontComplete = [
|
|
1893
|
+
"StringLiteral", "CommandLiteral", "NsStringLiteral", "NsCommandLiteral",
|
|
1894
|
+
"LineComment", "BlockComment", "CharLiteral", "Symbol", "Field",
|
|
1895
|
+
];
|
|
1896
|
+
const identifier = /@?[\p{L}_][\p{L}\p{N}_!′]*$/u;
|
|
1897
|
+
// Inside a string, an interpolation such as `"$(name)"` holds code that can
|
|
1898
|
+
// be completed.
|
|
1899
|
+
function inDontComplete(node) {
|
|
1900
|
+
for (let cur = node; cur; cur = cur.parent) {
|
|
1901
|
+
if (cur.name == "ParenExpression" || cur.name == "TupleExpression") {
|
|
1902
|
+
let parent = cur.parent;
|
|
1903
|
+
if (parent && (parent.name == "StringLiteral" || parent.name == "CommandLiteral"))
|
|
1904
|
+
return false;
|
|
1905
|
+
}
|
|
1906
|
+
if (dontComplete.indexOf(cur.name) > -1) {
|
|
1907
|
+
// `$name` inside a string is an Identifier child of the string.
|
|
1908
|
+
if (cur.name == "StringLiteral" && node.name == "Identifier" && node.parent == cur)
|
|
1909
|
+
return false;
|
|
1910
|
+
return true;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
return false;
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
Completes names defined in the file, in scope at the cursor.
|
|
1917
|
+
*/
|
|
1918
|
+
const localCompletionSource = (context) => {
|
|
1919
|
+
let inner = syntaxTree(context.state).resolveInner(context.pos, -1);
|
|
1920
|
+
if (inDontComplete(inner))
|
|
1921
|
+
return null;
|
|
1922
|
+
let word = context.matchBefore(identifier);
|
|
1923
|
+
if (!word && !context.explicit)
|
|
1924
|
+
return null;
|
|
1925
|
+
let options = [];
|
|
1926
|
+
for (let pos = inner; pos; pos = pos.parent) {
|
|
1927
|
+
if (isScope(pos))
|
|
1928
|
+
options = options.concat(getScope(context.state.doc, pos));
|
|
1929
|
+
}
|
|
1930
|
+
// Leave out the name being typed, when the file's only use of it is here.
|
|
1931
|
+
if (word)
|
|
1932
|
+
options = options.filter((o) => o.label != word.text);
|
|
1933
|
+
return { options, from: word ? word.from : context.pos, validFor: identifier };
|
|
1934
|
+
};
|
|
1935
|
+
// The libraries named by `using` or `import` statements in the file, such
|
|
1936
|
+
// as `Dates` in `using Dates` or `using Dates: now`.
|
|
1937
|
+
function usedLibraries(context) {
|
|
1938
|
+
let found = [];
|
|
1939
|
+
let scan = (node) => {
|
|
1940
|
+
for (let ch of children(node)) {
|
|
1941
|
+
if (ch.name == "UsingStatement" || ch.name == "ImportStatement") {
|
|
1942
|
+
let selected = ch.getChild("SelectedImport");
|
|
1943
|
+
let paths = selected ? selected.getChildren("ImportPath").slice(0, 1) : ch.getChildren("ImportPath");
|
|
1944
|
+
for (let path of paths) {
|
|
1945
|
+
let first = path.getChild("Identifier");
|
|
1946
|
+
if (first)
|
|
1947
|
+
found.push(context.state.sliceDoc(first.from, first.to));
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
else if (ch.name == "ModuleDefinition") {
|
|
1951
|
+
scan(ch);
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
scan(syntaxTree(context.state).topNode);
|
|
1956
|
+
return found;
|
|
1957
|
+
}
|
|
1958
|
+
/**
|
|
1959
|
+
Completes `Base` names, and the names of standard libraries such as
|
|
1960
|
+
`Dates` once the file has `using Dates`.
|
|
1961
|
+
*/
|
|
1962
|
+
const builtinCompletionSource = (context) => {
|
|
1963
|
+
let inner = syntaxTree(context.state).resolveInner(context.pos, -1);
|
|
1964
|
+
if (inDontComplete(inner))
|
|
1965
|
+
return null;
|
|
1966
|
+
let word = context.matchBefore(identifier);
|
|
1967
|
+
if (!word && !context.explicit)
|
|
1968
|
+
return null;
|
|
1969
|
+
let options = builtins.slice();
|
|
1970
|
+
for (let lib of usedLibraries(context)) {
|
|
1971
|
+
let names = stdlib(lib);
|
|
1972
|
+
if (names)
|
|
1973
|
+
options = options.concat(names);
|
|
1974
|
+
}
|
|
1975
|
+
return { options, from: word ? word.from : context.pos, validFor: identifier };
|
|
1976
|
+
};
|
|
1977
|
+
/**
|
|
1978
|
+
Completes the names in a module after `Base.` or `Dates.`.
|
|
1979
|
+
*/
|
|
1980
|
+
const memberCompletionSource = (context) => {
|
|
1981
|
+
let match = context.matchBefore(/[\p{L}_][\p{L}\p{N}_]*\.@?[\p{L}\p{N}_!]*$/u);
|
|
1982
|
+
if (!match)
|
|
1983
|
+
return null;
|
|
1984
|
+
let dot = match.text.indexOf(".");
|
|
1985
|
+
let module = match.text.slice(0, dot);
|
|
1986
|
+
let options = module == "Base" || module == "Core" ? builtins : stdlib(module);
|
|
1987
|
+
if (!options)
|
|
1988
|
+
return null;
|
|
1989
|
+
return { options: options, from: match.from + dot + 1, validFor: /^@?[\p{L}\p{N}_!]*$/u };
|
|
1990
|
+
};
|
|
1991
|
+
const keywordSource = /*@__PURE__*/completeFromList(/*@__PURE__*/keywords.concat(snippets));
|
|
1992
|
+
// Completion after a dot belongs to memberCompletionSource. A range such as
|
|
1993
|
+
// `1..` or a splat such as `xs...` doesn't count.
|
|
1994
|
+
function notAfterDot(source) {
|
|
1995
|
+
return (context) => {
|
|
1996
|
+
let before = context.state.sliceDoc(Math.max(0, context.pos - 200), context.pos);
|
|
1997
|
+
if (/(^|[^.])\.@?[\p{L}\p{N}_!]*$/u.test(before))
|
|
1998
|
+
return null;
|
|
1999
|
+
return source(context);
|
|
2000
|
+
};
|
|
2001
|
+
}
|
|
2002
|
+
const juliaCompletionSources = [
|
|
2003
|
+
/*@__PURE__*/notAfterDot(localCompletionSource),
|
|
2004
|
+
/*@__PURE__*/notAfterDot(builtinCompletionSource),
|
|
2005
|
+
/*@__PURE__*/notAfterDot((context) => {
|
|
2006
|
+
let inner = syntaxTree(context.state).resolveInner(context.pos, -1);
|
|
2007
|
+
return inDontComplete(inner) ? null : keywordSource(context);
|
|
2008
|
+
}),
|
|
2009
|
+
memberCompletionSource,
|
|
2010
|
+
];
|
|
2011
|
+
|
|
2012
|
+
// Folds a block from the end of its first line to its `end` keyword.
|
|
2013
|
+
function foldBlock(node, state) {
|
|
2014
|
+
let last = node.lastChild;
|
|
2015
|
+
if (!last || last.name != "end")
|
|
2016
|
+
return null;
|
|
2017
|
+
let from = state.doc.lineAt(node.from).to;
|
|
2018
|
+
let to = last.from;
|
|
2019
|
+
return to > from ? { from, to } : null;
|
|
2020
|
+
}
|
|
2021
|
+
const juliaLanguage = /*@__PURE__*/LRLanguage.define({
|
|
2022
|
+
parser: /*@__PURE__*/parser.configure({
|
|
2023
|
+
props: [
|
|
2024
|
+
/*@__PURE__*/indentNodeProp.add({
|
|
2025
|
+
IfStatement: /*@__PURE__*/continuedIndent({ except: /^\s*(end\b|else\b|elseif\b)/ }),
|
|
2026
|
+
TryStatement: /*@__PURE__*/continuedIndent({ except: /^\s*(end\b|else\b|finally\b)/ }),
|
|
2027
|
+
"Definition CompoundStatement": /*@__PURE__*/continuedIndent({ except: /^\s*(end\b)/ }), // node groups
|
|
2028
|
+
ExportStatement: /*@__PURE__*/continuedIndent(),
|
|
2029
|
+
ImportStatement: /*@__PURE__*/continuedIndent(),
|
|
2030
|
+
ReturnStatement: /*@__PURE__*/continuedIndent(),
|
|
2031
|
+
Assignment: /*@__PURE__*/continuedIndent(),
|
|
2032
|
+
BinaryExpression: /*@__PURE__*/continuedIndent(),
|
|
2033
|
+
TernaryExpression: /*@__PURE__*/continuedIndent(),
|
|
2034
|
+
}),
|
|
2035
|
+
/*@__PURE__*/foldNodeProp.add({
|
|
2036
|
+
"FunctionDefinition MacroDefinition StructDefinition ModuleDefinition": foldBlock,
|
|
2037
|
+
"IfStatement ForStatement WhileStatement LetStatement TryStatement": foldBlock,
|
|
2038
|
+
"BeginStatement QuoteStatement DoClause": foldBlock,
|
|
2039
|
+
"VectorExpression MatrixExpression ComprehensionExpression Arguments TupleExpression": foldInside,
|
|
2040
|
+
}),
|
|
2041
|
+
],
|
|
2042
|
+
}),
|
|
2043
|
+
languageData: {
|
|
2044
|
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`", "'''", '"""', "```"] },
|
|
2045
|
+
commentTokens: { line: "#", block: { open: "#=", close: "=#" } },
|
|
2046
|
+
indentOnInput: /^\s*(\]|\}|\)|end|else|elseif|catch|finally)$/,
|
|
2047
|
+
wordChars: "⁺⁻⁼⁽⁾₉₊₋₌₍₎℘⅀⅁⅂⅃⅄𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃!",
|
|
2048
|
+
},
|
|
2049
|
+
});
|
|
2050
|
+
function collectKeywords() {
|
|
2051
|
+
let keywords = [];
|
|
2052
|
+
for (let node of parser.nodeSet.types) {
|
|
2053
|
+
let groups = node.prop(NodeProp.group);
|
|
2054
|
+
let group = groups != null ? groups[0] : null;
|
|
2055
|
+
if (group === "keyword") {
|
|
2056
|
+
keywords.push({ label: node.name, type: "keyword" });
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
return keywords;
|
|
2060
|
+
}
|
|
2061
|
+
const keywordCompletion = /*@__PURE__*/juliaLanguage.data.of({
|
|
2062
|
+
autocomplete: /*@__PURE__*/autocomplete.completeFromList(/*@__PURE__*/collectKeywords()),
|
|
2063
|
+
});
|
|
2064
|
+
/**
|
|
2065
|
+
Completes keywords, snippets, the names in `Base` and the standard
|
|
2066
|
+
libraries used in the file, and the names defined in the file that are in
|
|
2067
|
+
scope at the cursor.
|
|
2068
|
+
*/
|
|
2069
|
+
const juliaCompletion = /*@__PURE__*/juliaCompletionSources.map((source) => juliaLanguage.data.of({ autocomplete: source }));
|
|
2070
|
+
const defaultConfig = {
|
|
2071
|
+
enableKeywordCompletion: false,
|
|
2072
|
+
enableCompletion: true,
|
|
2073
|
+
};
|
|
2074
|
+
function julia(config = defaultConfig) {
|
|
2075
|
+
config = Object.assign(Object.assign({}, defaultConfig), config);
|
|
2076
|
+
let extensions = [];
|
|
2077
|
+
if (config.enableCompletion) {
|
|
2078
|
+
extensions.push(juliaCompletion);
|
|
2079
|
+
}
|
|
2080
|
+
else if (config.enableKeywordCompletion) {
|
|
2081
|
+
extensions.push(keywordCompletion);
|
|
2082
|
+
}
|
|
2083
|
+
return new LanguageSupport(juliaLanguage, extensions);
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
export { builtinCompletionSource, builtins, julia, juliaCompletion, juliaCompletionSources, juliaLanguage, keywordCompletion, keywords, localCompletionSource, memberCompletionSource, snippets };
|