コード例 #1
0
 public void updatePreviousSourceLocation(SourceFileLocation sourceLocation) 
 {
    previousSourceLine = sourceLocation.getLine();
    previousSourceColumn = sourceLocation.getColumn();
    String sourceUrl = sourceLocation.getSourceUrl();
    previousSourceUrlIndex = indexOf(sourceUrlList, sourceUrl, sourceUrlMap);
    String sourceName = sourceLocation.getSourceName();
    if (sourceName != null) 
    {
       previousSourceNameIndex = indexOf(sourceNameList, sourceName, sourceNameMap);
    }
 }
コード例 #2
0
        bool sameAsPreviousLocation(SourceFileLocation sourceLocation)
        {
            if (sourceLocation == null)
            {
                return(true);
            }
            int sourceUrlIndex =
                indexOf(sourceUrlList, sourceLocation.getSourceUrl(), sourceUrlMap);

            return
                (sourceUrlIndex == previousSourceUrlIndex &&
                 sourceLocation.getLine() == previousSourceLine &&
                 sourceLocation.getColumn() == previousSourceColumn);
        }
コード例 #3
0
        public void updatePreviousSourceLocation(SourceFileLocation sourceLocation)
        {
            previousSourceLine   = sourceLocation.getLine();
            previousSourceColumn = sourceLocation.getColumn();
            String sourceUrl = sourceLocation.getSourceUrl();

            previousSourceUrlIndex = indexOf(sourceUrlList, sourceUrl, sourceUrlMap);
            String sourceName = sourceLocation.getSourceName();

            if (sourceName != null)
            {
                previousSourceNameIndex = indexOf(sourceNameList, sourceName, sourceNameMap);
            }
        }
コード例 #4
0
 bool sameAsPreviousLocation(SourceFileLocation sourceLocation) 
 {
    if (sourceLocation == null) {
       return true;
    }
    int sourceUrlIndex =
       indexOf(sourceUrlList, sourceLocation.getSourceUrl(), sourceUrlMap);
    return
       sourceUrlIndex == previousSourceUrlIndex &&
       sourceLocation.getLine() == previousSourceLine &&
       sourceLocation.getColumn() == previousSourceColumn;
 }