Skip to content

Commit

Permalink
ResolutionError
Browse files Browse the repository at this point in the history
- Cleaned up
  • Loading branch information
deavmi committed May 12, 2024
1 parent 01a05d9 commit f059fa3
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion source/tlang/compiler/typecheck/resolution.d
Expand Up @@ -17,11 +17,34 @@ import tlang.misc.exceptions : TError;
*/
public class ResolutionError : TError
{
/**
* The type of resolution error
*/
private enum ResErrType
{
/**
* A search within a container
* failed as no entity with the
* given name could not be found
*/
NAME_WITHIN_NO_ENT,

/**
* A best-effort search starting
* at a given container failed
* as an entity with the given
* name could not be found
*/
NAME_BEST_NO_ENT,

/**
* A best-effort search starting
* at a given container failed
* as an entity with the given
* name WAS found however its
* type was not a kind-of the
* type requested
*/
NAME_BEST_ENT_MISMATCH
}

Expand Down Expand Up @@ -188,7 +211,6 @@ public class ResolutionError : TError
}
}


/**
* The resolver provides a mechanism to
* search the AST tree for all named
Expand Down

0 comments on commit f059fa3

Please sign in to comment.