Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Shaders.Ast.SourceLocation Struct Reference

A Source location. More...

Public Member Functions

 SourceLocation (string fileSource, int position, int line, int column)
 Initializes a new instance of the SourceLocation struct. More...
 
 SourceLocation (int position, int line, int column)
 Initializes a new instance of the SourceLocation struct. More...
 
override string ToString ()
 
string ToString (bool useShortFileName)
 

Public Attributes

string FileSource
 Filename source. More...
 
int Position
 Absolute position in the file. More...
 
int Line
 Line in the file (1-based). More...
 
int Column
 Column in the file (1-based). More...
 

Detailed Description

A Source location.

Definition at line 11 of file SourceLocation.cs.

Constructor & Destructor Documentation

SiliconStudio.Shaders.Ast.SourceLocation.SourceLocation ( string  fileSource,
int  position,
int  line,
int  column 
)

Initializes a new instance of the SourceLocation struct.

Parameters
fileSourceThe file source.
positionThe position.
lineThe line.
columnThe column.

Definition at line 46 of file SourceLocation.cs.

SiliconStudio.Shaders.Ast.SourceLocation.SourceLocation ( int  position,
int  line,
int  column 
)

Initializes a new instance of the SourceLocation struct.

Parameters
positionThe position.
lineThe line.
columnThe column.

Definition at line 60 of file SourceLocation.cs.

Member Function Documentation

override string SiliconStudio.Shaders.Ast.SourceLocation.ToString ( )

Definition at line 69 of file SourceLocation.cs.

string SiliconStudio.Shaders.Ast.SourceLocation.ToString ( bool  useShortFileName)

Definition at line 74 of file SourceLocation.cs.

Member Data Documentation

int SiliconStudio.Shaders.Ast.SourceLocation.Column

Column in the file (1-based).

Definition at line 33 of file SourceLocation.cs.

string SiliconStudio.Shaders.Ast.SourceLocation.FileSource

Filename source.

Definition at line 18 of file SourceLocation.cs.

Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.PreVisitNode().

int SiliconStudio.Shaders.Ast.SourceLocation.Line
int SiliconStudio.Shaders.Ast.SourceLocation.Position

Absolute position in the file.

Definition at line 23 of file SourceLocation.cs.

Referenced by SiliconStudio.Shaders.Writer.ShaderWriter.PreVisitNode().


The documentation for this struct was generated from the following file: