File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,9 @@ class CompilationServer {
72
72
/**
73
73
Invalidates a module, removing it from the cache.
74
74
75
- If the module has already been loaded in current context, a compiler
76
- error will be raised which can be caught using `try ... catch`.
75
+ If the module has already been loaded in current context, a
76
+ `haxe.macro.Expr.Error` compiler error will be raised which can be
77
+ caught using `try ... catch`.
77
78
**/
78
79
static public function invalidateModule (path : String ) {
79
80
@:privateAccess Compiler .load (" server_invalidate_module" , 1 )(path );
Original file line number Diff line number Diff line change @@ -663,6 +663,10 @@ class Context {
663
663
/**
664
664
Defines a new type from `TypeDefinition` `t`.
665
665
666
+ If a matching module has already been loaded in current context, a
667
+ `haxe.macro.Expr.Error` compiler error will be raised which can be
668
+ caught using `try ... catch`.
669
+
666
670
If `moduleDependency` is given and is not `null`, it should contain
667
671
a module path that will be used as a dependency for the newly defined module
668
672
instead of the current module.
@@ -695,6 +699,10 @@ class Context {
695
699
Defines a new module as `modulePath` with several `TypeDefinition`
696
700
`types`. This is analogous to defining a .hx file.
697
701
702
+ If a matching module has already been loaded in current context, a
703
+ `haxe.macro.Expr.Error` compiler error will be raised which can be
704
+ caught using `try ... catch`.
705
+
698
706
The individual `types` can reference each other and any identifier
699
707
respects the `imports` and `usings` as usual, expect that imports are
700
708
not allowed to have `.*` wildcards or `as s` shorthands.
You can’t perform that action at this time.
0 commit comments