Skip to content

Commit

Permalink
feat(yakshaintellij): update documentation json file, add fixedarr
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed May 27, 2024
1 parent b1d7751 commit ba284c9
Show file tree
Hide file tree
Showing 3 changed files with 2,363 additions and 667 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public void addCompletions(@NotNull CompletionParameters parameters,
resultSet.addElement(LookupElementBuilder.create("@onstack").withIcon(YakshaIcons.KEYWORD));

resultSet.addElement(LookupElementBuilder.create("Array").withIcon(YakshaIcons.DATA_TYPE));
resultSet.addElement(LookupElementBuilder.create("FixedArr").withIcon(YakshaIcons.DATA_TYPE));
resultSet.addElement(LookupElementBuilder.create("Tuple").withIcon(YakshaIcons.DATA_TYPE));
resultSet.addElement(LookupElementBuilder.create("SMEntry").withIcon(YakshaIcons.DATA_TYPE));
resultSet.addElement(LookupElementBuilder.create("MEntry").withIcon(YakshaIcons.DATA_TYPE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class YakshaDocs {
.put("arrsetlen", BuiltinDoc.b("arrsetlen(Array[T], int) -> None", "Set array length. Each element will " +
"be an uninitialized element."))
.put("array", BuiltinDoc.b("array(\"T\", T...) -> Array[T]", "Create a new array from given elements"))
.put("fixedarr", BuiltinDoc.b("fixedarr(\"T\", T...) -> FixedArr[T,N]", "Create a new fixed array from given elements"))
.put("getref", BuiltinDoc.b("getref(T) -> Ptr[T]", "Get a pointer to given object"))
.put("unref", BuiltinDoc.b("unref(Ptr[T]) -> T", "Dereference a pointer"))
.put("charat", BuiltinDoc.b("charat(str, int) -> int", "Get a character at a specific location in string"))
Expand Down
Loading

0 comments on commit ba284c9

Please sign in to comment.