Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1232: Include type hint into KSErrorType. #1848

Merged
merged 2 commits into from
Jun 3, 2024

Commits on May 31, 2024

  1. google#1232: Include type hint into KSErrorType.

    This CL makes `KSErrorType` a class with a string
    "hint", that by convention should be a "simpleName"
    of an unresolved type.
    
    `KSErrorTypeClassDeclaration` is also no longer a singleton
    and references a corresponding `KSErrorType`.
    
    The implementation consists of extracting the available
    info on the unresolved type on the best effort basis.
    Jeffset committed May 31, 2024
    Configuration menu
    Copy the full SHA
    19bcc08 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2024

  1. Provide more hints for error types.

    Allow KSErrorType to receive a message as additional
    piece of information on why a valid type can't be provided.
    
    Cover `replace`/`asType` cases with a utility
    function `errorTypeOnInconsistentArguments` to
    get consistent error messages across implementations.
    
    Tweak KSTypeImpl.isError detection in AA, move TODO there.
    Jeffset committed Jun 1, 2024
    Configuration menu
    Copy the full SHA
    ccfa177 View commit details
    Browse the repository at this point in the history