Search Results for

    Show / Hide Table of Contents

    Interface IMerge<TSpan>

    Classes implementing this interface must supply a method that merges two location objects to return a new object of the same type. GPPG-generated parsers have the default location action equivalent to "@$ = @1.Merge(@N);&quot; where N is the right-hand-side length of the production.

    Namespace: QUT.Gppg
    Assembly: Xbim.Common.dll
    Syntax
    public interface IMerge<TSpan>
    Type Parameters
    Name Description
    TSpan

    The Location type

    Methods

    | Improve this Doc View Source

    Merge(TSpan)

    Interface method that creates a location object from the current and last object. Typically used to create a location object extending from the start of the @1 object to the end of the @N object.

    Declaration
    TSpan Merge(TSpan last)
    Parameters
    Type Name Description
    TSpan last

    The lexically last object to merge

    Returns
    Type Description
    TSpan

    The merged location object

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim