Search Results for

    Show / Hide Table of Contents

    Class LexLocation

    This is the default class that carries location information from the scanner to the parser. If you don't declare "%YYLTYPE Foo" the parser will expect to deal with this type.

    Inheritance
    System.Object
    LexLocation
    Implements
    IMerge<LexLocation>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: QUT.Gppg
    Assembly: Xbim.Common.dll
    Syntax
    public class LexLocation : IMerge<LexLocation>

    Constructors

    | Improve this Doc View Source

    LexLocation()

    Default no-arg constructor.

    Declaration
    public LexLocation()
    | Improve this Doc View Source

    LexLocation(Int32, Int32, Int32, Int32)

    Constructor for text-span with given start and end.

    Declaration
    public LexLocation(int sl, int sc, int el, int ec)
    Parameters
    Type Name Description
    System.Int32 sl

    start line

    System.Int32 sc

    start column

    System.Int32 el

    end line

    System.Int32 ec

    end column

    Properties

    | Improve this Doc View Source

    EndColumn

    The column of the first character beyond the end of the text span.

    Declaration
    public int EndColumn { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    EndLine

    The line on which the text span ends.

    Declaration
    public int EndLine { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    StartColumn

    The column at which the text span starts.

    Declaration
    public int StartColumn { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    StartLine

    The line at which the text span starts.

    Declaration
    public int StartLine { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Merge(LexLocation)

    Create a text location which spans from the start of "this" to the end of the argument "last"

    Declaration
    public LexLocation Merge(LexLocation last)
    Parameters
    Type Name Description
    LexLocation last

    The last location in the result span

    Returns
    Type Description
    LexLocation

    The merged span

    Implements

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