Skip to content

Commit aee211b

Browse files
narendrakpatelvtjnash
authored andcommitted
update docs for CodeInfo (#31445)
1 parent e8a88c9 commit aee211b

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

doc/src/devdocs/ast.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,6 @@ A (usually temporary) container for holding lowered source code.
598598

599599
An array of symbols giving names for each slot (argument or local variable).
600600

601-
* `slottypes`
602-
603-
An array of types for the slots (e.g. variables).
604-
605601
* `slotflags`
606602

607603
A `UInt8` array of slot properties, represented as bit flags:
@@ -637,6 +633,21 @@ A (usually temporary) container for holding lowered source code.
637633
An array of integer indices into the `linetable`, giving the location associated
638634
with each statement.
639635

636+
Optional Fields:
637+
638+
* `slottypes`
639+
640+
An array of types for the slots.
641+
642+
* `rettype`
643+
644+
The inferred return type of the lowered form (IR). Default value is `Any`.
645+
646+
* `method_for_inference_limit_heuristics`
647+
648+
The `method_for_inference_heuristics` will expand the given method's generator if
649+
necessary during inference.
650+
640651
* `parent`
641652

642653
The `MethodInstance` that "owns" this object (if applicable).
@@ -645,6 +656,7 @@ A (usually temporary) container for holding lowered source code.
645656

646657
The range of world ages for which this code was valid at the time when it had been inferred.
647658

659+
648660
Boolean properties:
649661

650662
* `inferred`
@@ -657,7 +669,7 @@ Boolean properties:
657669

658670
* `propagate_inbounds`
659671

660-
Whether this should should propagate `@inbounds` when inlined, for the purpose of eliding
672+
Whether this should propagate `@inbounds` when inlined for the purpose of eliding
661673
`@boundscheck` blocks.
662674

663675
* `pure`

0 commit comments

Comments
 (0)