Search Results for

    Show / Hide Table of Contents

    Class CstKindExtensions

    Provides the names every Links Notation implementation gives the kinds of CstKind.

    Inheritance
    object
    CstKindExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Link.Foundation.Links.Notation
    Assembly: Link.Foundation.Links.Notation.dll
    Syntax
    public static class CstKindExtensions

    Methods

    | Edit this page View Source

    IsNode(CstKind)

    Whether nodes of the kind hold children (Document, Line and Group) rather than text.

    Declaration
    public static bool IsNode(this CstKind kind)
    Parameters
    Type Name Description
    CstKind kind

    The kind to test.

    Returns
    Type Description
    bool

    true for a node kind, false for a token kind.

    | Edit this page View Source

    ToName(CstKind)

    The name of the kind as ToSExpression() writes it, the same in every implementation: document, line, group, whitespace, newline, comment, open_paren, close_paren, colon or reference.

    Declaration
    public static string ToName(this CstKind kind)
    Parameters
    Type Name Description
    CstKind kind

    The kind to name.

    Returns
    Type Description
    string

    The shared name of the kind.

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