SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
research:jtransformer:api:meta:sourcelocations:sourcelocationapi [2019/01/29 22:05]
Günter Kniesel
research:jtransformer:api:meta:sourcelocations:sourcelocationapi [2019/02/05 13:46] (current)
Günter Kniesel
Line 6: Line 6:
  
   * A [[sl_packageT]] fact provides source location information for the package declaration in a compilation unit.   * A [[sl_packageT]] fact provides source location information for the package declaration in a compilation unit.
-  * A [[slT]] fact provides source location information for any other AST element (no packagTe) that has an own ID. Somethimes, the [[slT]] information is too coarse-grained. To access relvant parts of an element, in particular its identifier and type, we use two additional PEF types:+  * A [[slT]] fact provides source location information for any other AST element (no packagT) that has an own ID. Somethimes, the [[slT]] information is too coarse-grained. To access relvant parts of an element, in particular its identifier and type, we use two additional PEF types:
     * A [[sl_identifierT]] fact provides source location information for the identifier //part// of an element with own ID (and an own  [[slT]] fact). ​ For instance, a field declaration (private MyType myfield;) contains a reference to the identifier "​myfield"​. An associated sl_identifierT stores the source location of "​myfield",​ whereas a separate slT fact stores the source location for the entire field declaration.  ​     * A [[sl_identifierT]] fact provides source location information for the identifier //part// of an element with own ID (and an own  [[slT]] fact). ​ For instance, a field declaration (private MyType myfield;) contains a reference to the identifier "​myfield"​. An associated sl_identifierT stores the source location of "​myfield",​ whereas a separate slT fact stores the source location for the entire field declaration.  ​
     * A [[sl_typeT]] fact provides source location information for the type reference //part// of an element with own ID  (and an own  [[slT]] fact). For instance, a field declaration (private MyType myfield;) contains a reference to the type "​MyType"​. An associated sl_typeT stores the source location of "​MyType",​ whereas a separate slT fact stores the source location for the entire field declaration.     * A [[sl_typeT]] fact provides source location information for the type reference //part// of an element with own ID  (and an own  [[slT]] fact). For instance, a field declaration (private MyType myfield;) contains a reference to the type "​MyType"​. An associated sl_typeT stores the source location of "​MyType",​ whereas a separate slT fact stores the source location for the entire field declaration.
research/jtransformer/api/meta/sourcelocations/sourcelocationapi.txt · Last modified: 2019/02/05 13:46 by Günter Kniesel

SEWiki, © 2019