Skip to content

Commit 9cfdfc6

Browse files
committed
import xml doc of macro_disallow_redefine_module (b1fbc37d68a0f82e2880472bca6dadc80d891d66)
1 parent 1a920cb commit 9cfdfc6

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"commit": "aef8f2c19e885dfafd659b76b1e30b73133ac1d3",
2+
"commit": "b1fbc37d68a0f82e2880472bca6dadc80d891d66",
33
"branch": "macro_disallow_redefine_module"
44
}

xml/macro_disallow_redefine_module/macro.xml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38842,14 +38842,18 @@
3884238842

3884338843
This is only defined for `@:build/@:autoBuild` macros.</haxe_doc>
3884438844
</getBuildFields>
38845-
<defineType public="1" set="method" line="674" static="1">
38845+
<defineType public="1" set="method" line="678" static="1">
3884638846
<f a="t:?moduleDependency">
3884738847
<t path="haxe.macro.TypeDefinition"/>
3884838848
<c path="String"/>
3884938849
<x path="Void"/>
3885038850
</f>
3885138851
<haxe_doc>Defines a new type from `TypeDefinition` `t`.
3885238852

38853+
If a matching module has already been loaded in current context, a
38854+
`haxe.macro.Expr.Error` compiler error will be raised which can be
38855+
caught using `try ... catch`.
38856+
3885338857
If `moduleDependency` is given and is not `null`, it should contain
3885438858
a module path that will be used as a dependency for the newly defined module
3885538859
instead of the current module.
@@ -38858,7 +38862,7 @@
3885838862
cause compilation server issues. Use `Context.onAfterInitMacros` to
3885938863
run your code once typer is ready to be used.</haxe_doc>
3886038864
</defineType>
38861-
<makeMonomorph public="1" set="method" line="689" static="1">
38865+
<makeMonomorph public="1" set="method" line="693" static="1">
3886238866
<f a=""><e path="haxe.macro.Type"/></f>
3886338867
<haxe_doc>Creates and returns a new instance of monomorph (`TMono`) type.
3886438868

@@ -38869,7 +38873,7 @@
3886938873
cause compilation server issues. Use `Context.onAfterInitMacros` to
3887038874
run your code once typer is ready to be used.</haxe_doc>
3887138875
</makeMonomorph>
38872-
<defineModule public="1" set="method" line="706" static="1">
38876+
<defineModule public="1" set="method" line="714" static="1">
3887338877
<f a="modulePath:types:?imports:?usings">
3887438878
<c path="String"/>
3887538879
<c path="Array"><t path="haxe.macro.TypeDefinition"/></c>
@@ -38880,6 +38884,10 @@
3888038884
<haxe_doc>Defines a new module as `modulePath` with several `TypeDefinition`
3888138885
`types`. This is analogous to defining a .hx file.
3888238886

38887+
If a matching module has already been loaded in current context, a
38888+
`haxe.macro.Expr.Error` compiler error will be raised which can be
38889+
caught using `try ... catch`.
38890+
3888338891
The individual `types` can reference each other and any identifier
3888438892
respects the `imports` and `usings` as usual, expect that imports are
3888538893
not allowed to have `.*` wildcards or `as s` shorthands.
@@ -38888,7 +38896,7 @@
3888838896
cause compilation server issues. Use `Context.onAfterInitMacros` to
3888938897
run your code once typer is ready to be used.</haxe_doc>
3889038898
</defineModule>
38891-
<getTypedExpr public="1" set="method" line="724" static="1">
38899+
<getTypedExpr public="1" set="method" line="732" static="1">
3889238900
<f a="t">
3889338901
<t path="haxe.macro.TypedExpr"/>
3889438902
<t path="haxe.macro.Expr"/>
@@ -38901,7 +38909,7 @@
3890138909
cause compilation server issues. Use `Context.onAfterInitMacros` to
3890238910
run your code once typer is ready to be used.</haxe_doc>
3890338911
</getTypedExpr>
38904-
<storeTypedExpr public="1" set="method" line="745" static="1">
38912+
<storeTypedExpr public="1" set="method" line="753" static="1">
3890538913
<f a="t">
3890638914
<t path="haxe.macro.TypedExpr"/>
3890738915
<t path="haxe.macro.Expr"/>
@@ -38921,7 +38929,7 @@
3892138929
cause compilation server issues. Use `Context.onAfterInitMacros` to
3892238930
run your code once typer is ready to be used.</haxe_doc>
3892338931
</storeTypedExpr>
38924-
<storeExpr public="1" set="method" line="769" static="1">
38932+
<storeExpr public="1" set="method" line="777" static="1">
3892538933
<f a="e">
3892638934
<t path="haxe.macro.Expr"/>
3892738935
<t path="haxe.macro.Expr"/>
@@ -38944,7 +38952,7 @@
3894438952
cause compilation server issues. Use `Context.onAfterInitMacros` to
3894538953
run your code once typer is ready to be used.</haxe_doc>
3894638954
</storeExpr>
38947-
<typeAndStoreExpr public="1" set="method" line="782" static="1">
38955+
<typeAndStoreExpr public="1" set="method" line="790" static="1">
3894838956
<f a="e">
3894938957
<t path="haxe.macro.Expr"/>
3895038958
<a>
@@ -38959,7 +38967,7 @@
3895938967
cause compilation server issues. Use `Context.onAfterInitMacros` to
3896038968
run your code once typer is ready to be used.</haxe_doc>
3896138969
</typeAndStoreExpr>
38962-
<registerModuleDependency public="1" set="method" line="800" static="1">
38970+
<registerModuleDependency public="1" set="method" line="808" static="1">
3896338971
<f a="modulePath:externFile">
3896438972
<c path="String"/>
3896538973
<c path="String"/>
@@ -38977,7 +38985,7 @@
3897738985
cause compilation server issues. Use `Context.onAfterInitMacros` to
3897838986
run your code once typer is ready to be used.</haxe_doc>
3897938987
</registerModuleDependency>
38980-
<timer public="1" set="method" line="818" static="1">
38988+
<timer public="1" set="method" line="826" static="1">
3898138989
<f a="id">
3898238990
<c path="String"/>
3898338991
<f a=""><x path="Void"/></f>
@@ -38995,7 +39003,7 @@
3899539003
stopTimer();
3899639004
```</haxe_doc>
3899739005
</timer>
38998-
<withImports public="1" params="X" set="method" line="835" static="1">
39006+
<withImports public="1" params="X" set="method" line="843" static="1">
3899939007
<f a="imports:usings:code">
3900039008
<c path="Array"><c path="String"/></c>
3900139009
<c path="Array"><c path="String"/></c>
@@ -39014,7 +39022,7 @@
3901439022
cause compilation server issues. Use `Context.onAfterInitMacros` to
3901539023
run your code once typer is ready to be used.</haxe_doc>
3901639024
</withImports>
39017-
<withOptions public="1" params="X" set="method" line="854" static="1">
39025+
<withOptions public="1" params="X" set="method" line="862" static="1">
3901839026
<f a="options:code">
3901939027
<a>
3902039028
<allowTransform>
@@ -39041,22 +39049,22 @@
3904139049
cause compilation server issues. Use `Context.onAfterInitMacros` to
3904239050
run your code once typer is ready to be used.</haxe_doc>
3904339051
</withOptions>
39044-
<registerModuleReuseCall public="1" set="method" line="860" static="1">
39052+
<registerModuleReuseCall public="1" set="method" line="868" static="1">
3904539053
<f a="modulePath:macroCall">
3904639054
<c path="String"/>
3904739055
<c path="String"/>
3904839056
<x path="Void"/>
3904939057
</f>
3905039058
<meta><m n=":deprecated"/></meta>
3905139059
</registerModuleReuseCall>
39052-
<onMacroContextReused public="1" set="method" line="865" static="1">
39060+
<onMacroContextReused public="1" set="method" line="873" static="1">
3905339061
<f a="callb">
3905439062
<f a=""><x path="Bool"/></f>
3905539063
<x path="Void"/>
3905639064
</f>
3905739065
<meta><m n=":deprecated"/></meta>
3905839066
</onMacroContextReused>
39059-
<load set="method" line="873" static="1">
39067+
<load set="method" line="881" static="1">
3906039068
<f a="f:nargs">
3906139069
<c path="String"/>
3906239070
<x path="Int"/>
@@ -39069,21 +39077,21 @@
3906939077
<m n=":allow"><e>haxe.macro.PositionTools</e></m>
3907039078
</meta>
3907139079
</load>
39072-
<includeFile set="method" line="877" static="1"><f a="file:position">
39080+
<includeFile set="method" line="885" static="1"><f a="file:position">
3907339081
<c path="String"/>
3907439082
<c path="String"/>
3907539083
<x path="Void"/>
3907639084
</f></includeFile>
39077-
<sExpr set="method" line="881" static="1"><f a="e:pretty">
39085+
<sExpr set="method" line="889" static="1"><f a="e:pretty">
3907839086
<t path="haxe.macro.TypedExpr"/>
3907939087
<x path="Bool"/>
3908039088
<c path="String"/>
3908139089
</f></sExpr>
39082-
<assertInitMacro set="method" line="886" static="1">
39090+
<assertInitMacro set="method" line="894" static="1">
3908339091
<f a=""><x path="Void"/></f>
3908439092
<meta><m n=":allow"><e>haxe.macro.Compiler</e></m></meta>
3908539093
</assertInitMacro>
39086-
<assertInitMacrosDone set="method" line="898" static="1">
39094+
<assertInitMacrosDone set="method" line="906" static="1">
3908739095
<f a="?includeSuggestion" v="true">
3908839096
<x path="Bool"/>
3908939097
<x path="Void"/>

0 commit comments

Comments
 (0)