Show / Hide Table of Contents

Class Line

Represents a raw line from the source file.

Inheritance
System.Object
Line
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fluency.Execution.Parsing.Entities
Assembly: Execution.dll
Syntax
public class Line

Properties

| Improve this Doc View Source

Contents

The contents of the string.

Declaration
public string Contents { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Number

The one-indexed line number.

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

Methods

| Improve this Doc View Source

Create(String, Int32)

Create a line. This is a factory function so you can give it to Linq's .Select and have it do the indexing for you.

Declaration
public static Line Create(string contents, int number)
Parameters
Type Name Description
System.String contents
System.Int32 number

The zero-based index. The number one higher than this will be stored.

Returns
Type Description
Line
| Improve this Doc View Source

ToString()

Return lineNumber: Contents

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX