Skip to content

Commit

Permalink
Simplify and make imports explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Oct 7, 2024
1 parent e40db7d commit 2009463
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions src/GeometryOps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,14 @@
module GeometryOps

import GeometryOpsCore
for name in Base.setdiff(
Base.union(
names(GeometryOpsCore),
(
:flatten, :reconstruct, :rebuild, :unwrap, :_linearring,
:APPLY_KEYWORDS, :THREADED_KEYWORD, :CRS_KEYWORD, :CALC_EXTENT_KEYWORD,
)
),
(:eval, :include, :var"#eval", :var"#include"),
)
# Import all symbols from GeometryOpsCore
@eval import GeometryOpsCore: $name
# Re-export all exported symbols
if Base.isexported(GeometryOpsCore, name)
@eval export $name
end
end
import GeometryOpsCore:
Manifold, Planar, Spherical, Geodesic,
BoolsAsTypes, _True, _False, _booltype,
apply, applyreduce,
flatten, reconstruct, rebuild, unwrap, _linearring,
APPLY_KEYWORDS, THREADED_KEYWORD, CRS_KEYWORD, CALC_EXTENT_KEYWORD

export Manifold, Planar, Spherical, Geodesic, apply, applyreduce, flatten, reconstruct, rebuild, unwrap

using GeoInterface
using GeometryBasics
Expand Down

0 comments on commit 2009463

Please sign in to comment.