Skip to content

Commit 9615407

Browse files
committed
Update documentation [skip ci]
1 parent 2c2de77 commit 9615407

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docs/api/HarmonyLib.Code.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373

7474
<h1 id="HarmonyLib_Code" data-uid="HarmonyLib.Code" class="text-break">Class Code
7575
</h1>
76-
<div class="markdown level0 summary"><p>By adding the following using statement to your source code:</p>
76+
<div class="markdown level0 summary"><p>By adding the following using statement to your source code: <code>using static HarmonyLib.Code;</code>
77+
you can for example start using <code>Ldarg_1</code> in you code instead of <code>new CodeMatch(OpCodes.Ldarg_1)</code>
78+
and then you can use array notation to add an operand and/or a name: <code>Call[myMethodInfo]</code> instead of <code>new CodeMatch(OpCodes.Call, myMethodInfo)</code></p>
7779
</div>
7880
<div class="markdown level0 conceptual"></div>
7981
<div class="inheritance">

docs/api/HarmonyLib.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ <h4><a class="xref" href="HarmonyLib.AccessToolsExtensions.html">AccessToolsExte
8484
<section><p>Adds extensions to Type for a lot of AccessTools methods</p>
8585
</section>
8686
<h4><a class="xref" href="HarmonyLib.Code.html">Code</a></h4>
87-
<section><p>By adding the following using statement to your source code:</p>
87+
<section><p>By adding the following using statement to your source code: <code>using static HarmonyLib.Code;</code>
88+
you can for example start using <code>Ldarg_1</code> in you code instead of <code>new CodeMatch(OpCodes.Ldarg_1)</code>
89+
and then you can use array notation to add an operand and/or a name: <code>Call[myMethodInfo]</code> instead of <code>new CodeMatch(OpCodes.Call, myMethodInfo)</code></p>
8890
</section>
8991
<h4><a class="xref" href="HarmonyLib.CodeInstruction.html">CodeInstruction</a></h4>
9092
<section><p>An abstract wrapper around OpCode and their operands. Used by transpilers</p>

docs/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"output": {
8282
".html": {
8383
"relative_path": "api/HarmonyLib.Code.html",
84-
"hash": "jHINphZrXUllkdoD0uW84YoH/BfF5ERkmS43Ax/ucU4="
84+
"hash": "YIxhbnt0A5qQQY/dHS4H5FGvAZF1hHL03QTNMJxYkCo="
8585
}
8686
},
8787
"is_incremental": false,
@@ -765,7 +765,7 @@
765765
"output": {
766766
".html": {
767767
"relative_path": "api/HarmonyLib.html",
768-
"hash": "+AYX/ITLpdMzYBM4ta3s7jbvK4RjutK/r/PfeOxZIhI="
768+
"hash": "chEAxFUBf4O50TWb0MOiGTez7+bqCTkdJS7cYQenL/8="
769769
}
770770
},
771771
"is_incremental": false,

0 commit comments

Comments
 (0)