C# Class Loyc.Syntax.EmptySourceFile

A dummy implementation of ISourceFile that has only a filename, no source text. Used as the source file of synthetic syntax nodes.
Inheritance: ISourceFile
Exibir arquivo Open project: qwertie/ecsharp

Public Properties

Property Type Description
Default EmptySourceFile
Unknown EmptySourceFile

Public Methods

Method Description
EmptySourceFile ( string fileName ) : System
IndexToLine ( int index ) : SourcePos
LineToIndex ( LineAndCol pos ) : int
LineToIndex ( int lineNo ) : int

Method Details

EmptySourceFile() public method

public EmptySourceFile ( string fileName ) : System
fileName string
return System

IndexToLine() public method

public IndexToLine ( int index ) : SourcePos
index int
return SourcePos

LineToIndex() public method

public LineToIndex ( LineAndCol pos ) : int
pos LineAndCol
return int

LineToIndex() public method

public LineToIndex ( int lineNo ) : int
lineNo int
return int

Property Details

Default public_oe static_oe property

public static EmptySourceFile,Loyc.Syntax Default
return EmptySourceFile

Unknown public_oe static_oe property

public static EmptySourceFile,Loyc.Syntax Unknown
return EmptySourceFile