Skip to content

Commit 2b79326

Browse files
authored
Move the list of Base's public names from base/exports.jl to base/public.jl (#53487)
1 parent c19c68e commit 2b79326

File tree

3 files changed

+102
-100
lines changed

3 files changed

+102
-100
lines changed

base/Base.jl

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ if isdefined(Core, :Compiler)
137137
end
138138

139139
include("exports.jl")
140+
include("public.jl")
140141

141142
if false
142143
# simple print definitions for debugging. enable these if something

base/exports.jl

-100
Original file line numberDiff line numberDiff line change
@@ -1078,103 +1078,3 @@ export
10781078
@static,
10791079

10801080
@main
1081-
1082-
public
1083-
# Modules
1084-
Checked,
1085-
Filesystem,
1086-
Order,
1087-
Sort,
1088-
1089-
# Types
1090-
AbstractLock,
1091-
AsyncCondition,
1092-
CodeUnits,
1093-
Event,
1094-
Fix1,
1095-
Fix2,
1096-
Generator,
1097-
ImmutableDict,
1098-
OneTo,
1099-
LogRange,
1100-
AnnotatedString,
1101-
AnnotatedChar,
1102-
UUID,
1103-
1104-
# Annotated strings
1105-
annotatedstring,
1106-
annotate!,
1107-
annotations,
1108-
1109-
# Semaphores
1110-
Semaphore,
1111-
acquire,
1112-
release,
1113-
1114-
# collections
1115-
IteratorEltype,
1116-
IteratorSize,
1117-
to_index,
1118-
vect,
1119-
isdone,
1120-
front,
1121-
rest,
1122-
split_rest,
1123-
tail,
1124-
checked_length,
1125-
1126-
# Loading
1127-
DL_LOAD_PATH,
1128-
load_path,
1129-
active_project,
1130-
1131-
# Reflection and introspection
1132-
isambiguous,
1133-
isexpr,
1134-
isidentifier,
1135-
issingletontype,
1136-
identify_package,
1137-
locate_package,
1138-
moduleroot,
1139-
jit_total_bytes,
1140-
summarysize,
1141-
isexported,
1142-
ispublic,
1143-
remove_linenums!,
1144-
1145-
# Opperators
1146-
operator_associativity,
1147-
operator_precedence,
1148-
isbinaryoperator,
1149-
isoperator,
1150-
isunaryoperator,
1151-
1152-
# C interface
1153-
cconvert,
1154-
unsafe_convert,
1155-
1156-
# Error handling
1157-
exit_on_sigint,
1158-
windowserror,
1159-
1160-
# Macros
1161-
@assume_effects,
1162-
@constprop,
1163-
@locals,
1164-
@propagate_inbounds,
1165-
1166-
# IO
1167-
# types
1168-
BufferStream,
1169-
IOServer,
1170-
OS_HANDLE,
1171-
PipeEndpoint,
1172-
TTY,
1173-
# functions
1174-
reseteof,
1175-
link_pipe!,
1176-
1177-
# misc
1178-
notnothing,
1179-
runtests,
1180-
text_colors

base/public.jl

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# This file is a part of Julia. License is MIT: https://julialang.org/license
2+
3+
public
4+
# Modules
5+
Checked,
6+
Filesystem,
7+
Order,
8+
Sort,
9+
10+
# Types
11+
AbstractLock,
12+
AsyncCondition,
13+
CodeUnits,
14+
Event,
15+
Fix1,
16+
Fix2,
17+
Generator,
18+
ImmutableDict,
19+
OneTo,
20+
LogRange,
21+
AnnotatedString,
22+
AnnotatedChar,
23+
UUID,
24+
25+
# Annotated strings
26+
annotatedstring,
27+
annotate!,
28+
annotations,
29+
30+
# Semaphores
31+
Semaphore,
32+
acquire,
33+
release,
34+
35+
# collections
36+
IteratorEltype,
37+
IteratorSize,
38+
to_index,
39+
vect,
40+
isdone,
41+
front,
42+
rest,
43+
split_rest,
44+
tail,
45+
checked_length,
46+
47+
# Loading
48+
DL_LOAD_PATH,
49+
load_path,
50+
active_project,
51+
52+
# Reflection and introspection
53+
isambiguous,
54+
isexpr,
55+
isidentifier,
56+
issingletontype,
57+
identify_package,
58+
locate_package,
59+
moduleroot,
60+
jit_total_bytes,
61+
summarysize,
62+
isexported,
63+
ispublic,
64+
remove_linenums!,
65+
66+
# Opperators
67+
operator_associativity,
68+
operator_precedence,
69+
isbinaryoperator,
70+
isoperator,
71+
isunaryoperator,
72+
73+
# C interface
74+
cconvert,
75+
unsafe_convert,
76+
77+
# Error handling
78+
exit_on_sigint,
79+
windowserror,
80+
81+
# Macros
82+
@assume_effects,
83+
@constprop,
84+
@locals,
85+
@propagate_inbounds,
86+
87+
# IO
88+
# types
89+
BufferStream,
90+
IOServer,
91+
OS_HANDLE,
92+
PipeEndpoint,
93+
TTY,
94+
# functions
95+
reseteof,
96+
link_pipe!,
97+
98+
# misc
99+
notnothing,
100+
runtests,
101+
text_colors

0 commit comments

Comments
 (0)