OASIS Static Analysis Results Interchange Format (SARIF) TC

Error in one of my "region" examples

  • 1.  Error in one of my "region" examples

    Posted 05-23-2018 22:03
    Yesterday I shared some examples of a new proposal for defining region properties. One of them was wrong. Here is the correction:   5. If  endColumn  is missing, it defaults to one more than the number of characters on the last line of the region ( excluding the newline sequence).   EXAMPLE: Suppose line 12 contains  "abcd
    "  (the four characters  "abcd"  followed by the two-character newline sequence  "
    " ). Then the region  startLine  = 12,  startColumn  = 2 contains the three characters  "bcd" . The implied value of endColumn is 5 .   Larry