Esempio n. 1
0
 /// <summary>
 /// Create a new line instruction.
 /// </summary>
 /// <param name="sLine">Start of the line in the source file.</param>
 /// <param name="sCol">Starting column in the source file.</param>
 /// <param name="eLine">Ending line in the source file.</param>
 /// <param name="eCol">Ending column in the source file.</param>
 /// <param name="sFile">The filename of the souce file.</param>
 internal Line(uint sLine, uint sCol, uint eLine, uint eCol, SourceFile sFile)
 {
     startLine = sLine;
       startCol = sCol;
       endLine = eLine;
       endCol = eCol;
       hasEnd = true;
       sourceFile = sFile;
       size = 0;
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new line instruction.
 /// </summary>
 /// <param name="startNum">The starting line for the code segment.</param>
 /// <param name="startCol">The starting column for the code segment.</param>
 /// <param name="endNum">The ending line for the code segment.</param>
 /// <param name="endCol">The ending column for the code segment.</param>
 /// <param name="sFile">The source file for the given code segment.</param>
 public void Line(uint startNum, uint startCol, uint endNum, uint endCol, SourceFile sFile)
 {
     AddToBuffer(new Line(startNum, startCol, endNum, endCol, sFile));
 }
Esempio n. 3
0
 /*-------------------- Constructors ---------------------------------*/
 /// <summary>
 /// Create a new line instruction.
 /// </summary>
 /// <param name="sLine">Start of the line in the source file.</param>
 /// <param name="sCol">Starting column in the source file.</param>
 /// <param name="sFile">The filename of the souce file.</param>
 internal Line(uint sLine, uint sCol, SourceFile sFile)
 {
     startLine = sLine;
       startCol = sCol;
       sourceFile = sFile;
       size = 0;
 }
Esempio n. 4
0
 internal bool Match(SourceFile file)
 {
     Contract.Requires(file != null);
     if (this == file) return true;
     if (name != file.name) return false;
     return GuidsMatch(file.language, file.vendor, file.document);
 }