File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1136,7 +1136,7 @@ function get_expressions(id::PkgId, filename)
11361136 return fi. modexsigs
11371137end
11381138
1139- function add_definitions_from_repl (filename)
1139+ function add_definitions_from_repl (filename:: String )
11401140 hist_idx = parse (Int, filename[6 : end - 1 ])
11411141 hp = (Base. active_repl:: REPL.LineEditREPL ). interface. modes[1 ]. hist:: REPL.REPLHistoryProvider
11421142 src = hp. history[hp. start_idx+ hist_idx]
@@ -1149,6 +1149,7 @@ function add_definitions_from_repl(filename)
11491149 push! (pkgdata, filename=> fi)
11501150 return fi
11511151end
1152+ add_definitions_from_repl (filename:: AbstractString ) = add_definitions_from_repl (convert (String, filename):: String )
11521153
11531154function update_stacktrace_lineno! (trace)
11541155 local nrep
Original file line number Diff line number Diff line change @@ -163,12 +163,12 @@ function hasfile(info, file)
163163 fileindex (info, file) != = nothing
164164end
165165
166- function fileinfo (pkgdata:: PkgData , file:: AbstractString )
166+ function fileinfo (pkgdata:: PkgData , file:: String )
167167 i = fileindex (pkgdata, file)
168168 i === nothing && error (" file " , file, " not found" )
169169 return pkgdata. fileinfos[i]
170170end
171- fileinfo (pkgdata:: PkgData , i:: Integer ) = pkgdata. fileinfos[i]
171+ fileinfo (pkgdata:: PkgData , i:: Int ) = pkgdata. fileinfos[i]
172172
173173function Base. push! (pkgdata:: PkgData , pr:: Pair{<:Any,FileInfo} )
174174 push! (srcfiles (pkgdata), pr. first)
You can’t perform that action at this time.
0 commit comments