Search Results for

    Show / Hide Table of Contents

    Class TypeResolverNamespace

    An artifical namespace introduced by a type resolver.

    Inheritance
    object
    TypeResolverNamespace
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.TypeSystem
    Assembly: Flame.dll
    Syntax
    public sealed class TypeResolverNamespace

    Properties

    | Edit this page View Source

    Namespaces

    Gets a mapping of names to child namespaces defined in this namespace.

    Declaration
    public IReadOnlyDictionary<UnqualifiedName, TypeResolverNamespace> Namespaces { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<UnqualifiedName, TypeResolverNamespace>
    | Edit this page View Source

    Types

    Gets the set of all types defined by this resolver.

    Declaration
    public IEnumerable<IType> Types { get; }
    Property Value
    Type Description
    IEnumerable<IType>

    Methods

    | Edit this page View Source

    ResolveTypes(UnqualifiedName)

    Gets all types in this namespace with a particular name.

    Declaration
    public IReadOnlyList<IType> ResolveTypes(UnqualifiedName name)
    Parameters
    Type Name Description
    UnqualifiedName name

    The name to look for.

    Returns
    Type Description
    IReadOnlyList<IType>

    A list of all types with that name.

    | Edit this page View Source

    ResolveTypes(string)

    Gets all types in this namespace with a particular name.

    Declaration
    public IReadOnlyList<IType> ResolveTypes(string name)
    Parameters
    Type Name Description
    string name

    The name to look for.

    Returns
    Type Description
    IReadOnlyList<IType>

    A list of all types with that name. This includes all simply named types with name name, regardless of the number of type parameters in the type's name.

    | Edit this page View Source

    ToImpreciseName(UnqualifiedName)

    Takes an unqualified name and turns it into an imprecise name by dropping the type parameter count of simple names and converting all other kinds of names into strings.

    Declaration
    public static string ToImpreciseName(UnqualifiedName name)
    Parameters
    Type Name Description
    UnqualifiedName name

    The name to convert.

    Returns
    Type Description
    string

    An imprecise name.

    | Edit this page View Source

    TryResolveNamespace(QualifiedName, out TypeResolverNamespace)

    Tries to find a child whose full name corresponds to the concatenation of this namespace's full name and a given qualified name.

    Declaration
    public bool TryResolveNamespace(QualifiedName fullName, out TypeResolverNamespace result)
    Parameters
    Type Name Description
    QualifiedName fullName

    The name to look for.

    TypeResolverNamespace result

    A namespace whose name equals the concatenation of this namespace's full name and fullName, provided that there is such a namespace.

    Returns
    Type Description
    bool

    true if a (non-empty) namespace with name fullName can be found; otherwise, false.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX