Skip to content

Commit

Permalink
Move the list of Base's public names from base/exports.jl to `bas…
Browse files Browse the repository at this point in the history
…e/public.jl` (JuliaLang#53487)
  • Loading branch information
DilumAluthge committed Feb 27, 2024
1 parent c19c68e commit 2b79326
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 100 deletions.
1 change: 1 addition & 0 deletions base/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ if isdefined(Core, :Compiler)
end

include("exports.jl")
include("public.jl")

if false
# simple print definitions for debugging. enable these if something
Expand Down
100 changes: 0 additions & 100 deletions base/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1078,103 +1078,3 @@ export
@static,

@main

public
# Modules
Checked,
Filesystem,
Order,
Sort,

# Types
AbstractLock,
AsyncCondition,
CodeUnits,
Event,
Fix1,
Fix2,
Generator,
ImmutableDict,
OneTo,
LogRange,
AnnotatedString,
AnnotatedChar,
UUID,

# Annotated strings
annotatedstring,
annotate!,
annotations,

# Semaphores
Semaphore,
acquire,
release,

# collections
IteratorEltype,
IteratorSize,
to_index,
vect,
isdone,
front,
rest,
split_rest,
tail,
checked_length,

# Loading
DL_LOAD_PATH,
load_path,
active_project,

# Reflection and introspection
isambiguous,
isexpr,
isidentifier,
issingletontype,
identify_package,
locate_package,
moduleroot,
jit_total_bytes,
summarysize,
isexported,
ispublic,
remove_linenums!,

# Opperators
operator_associativity,
operator_precedence,
isbinaryoperator,
isoperator,
isunaryoperator,

# C interface
cconvert,
unsafe_convert,

# Error handling
exit_on_sigint,
windowserror,

# Macros
@assume_effects,
@constprop,
@locals,
@propagate_inbounds,

# IO
# types
BufferStream,
IOServer,
OS_HANDLE,
PipeEndpoint,
TTY,
# functions
reseteof,
link_pipe!,

# misc
notnothing,
runtests,
text_colors
101 changes: 101 additions & 0 deletions base/public.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

public
# Modules
Checked,
Filesystem,
Order,
Sort,

# Types
AbstractLock,
AsyncCondition,
CodeUnits,
Event,
Fix1,
Fix2,
Generator,
ImmutableDict,
OneTo,
LogRange,
AnnotatedString,
AnnotatedChar,
UUID,

# Annotated strings
annotatedstring,
annotate!,
annotations,

# Semaphores
Semaphore,
acquire,
release,

# collections
IteratorEltype,
IteratorSize,
to_index,
vect,
isdone,
front,
rest,
split_rest,
tail,
checked_length,

# Loading
DL_LOAD_PATH,
load_path,
active_project,

# Reflection and introspection
isambiguous,
isexpr,
isidentifier,
issingletontype,
identify_package,
locate_package,
moduleroot,
jit_total_bytes,
summarysize,
isexported,
ispublic,
remove_linenums!,

# Opperators
operator_associativity,
operator_precedence,
isbinaryoperator,
isoperator,
isunaryoperator,

# C interface
cconvert,
unsafe_convert,

# Error handling
exit_on_sigint,
windowserror,

# Macros
@assume_effects,
@constprop,
@locals,
@propagate_inbounds,

# IO
# types
BufferStream,
IOServer,
OS_HANDLE,
PipeEndpoint,
TTY,
# functions
reseteof,
link_pipe!,

# misc
notnothing,
runtests,
text_colors

0 comments on commit 2b79326

Please sign in to comment.