Rename def to alias.

This commit is contained in:
Christoffer Lerno
2025-03-13 11:22:27 +01:00
parent ae76839347
commit 8b49e6c14d
193 changed files with 790 additions and 776 deletions

View File

@@ -10,7 +10,7 @@ struct An3
An2 y;
}
def AnCall = fn void();
alias AnCall = fn void();
struct An2
{

View File

@@ -1,4 +1,4 @@
def NodeNotifyHandler = fn void(TreeView* this, TreeNode* node, String prop, void* data);
alias NodeNotifyHandler = fn void(TreeView* this, TreeNode* node, String prop, void* data);
fn void TreeView.nodeNotifyHandler(TreeView* this, TreeNode* node, String prop, void* data) @private {}
struct TreeNode { int abc; NodeNotifyHandler notifyHandler; }

View File

@@ -1,6 +1,6 @@
module test;
def Bob = Test{any};
alias Bob = Test{any};
fn void Bob.crash(&self) {}
fn int main()

View File

@@ -1,7 +1,7 @@
module compiler_c3;
import std::collections::list;
def IntArray = List{int};
alias IntArray = List{int};
extern fn void printf(char*, ...);

View File

@@ -1,4 +1,4 @@
def NodeNotifyHandler = fn void(TreeView* this, TreeNode* node, String prop, void* data);
alias NodeNotifyHandler = fn void(TreeView* this, TreeNode* node, String prop, void* data);
fn void TreeView.nodeNotifyHandler(TreeView* this, TreeNode* node, String prop, void* data) @private {}
struct TreeNode { int abc; NodeNotifyHandler notifyHandler; }

View File

@@ -9,7 +9,7 @@ fn bool Foo[].is_empty(Foo[] array) {
return array.len == 0;
}
def foo_arr_is_empty = Foo[].is_empty;
alias foo_arr_is_empty = Foo[].is_empty;
fn void main() {
Foo[] foos = { (Foo) { .i = 0 } };