Difference between revisions of "XCSG:Contains"

From AtlasWiki
Jump to: navigation, search
(Created page with "A contains edge indicates that the code element represented by the node it comes from contains the code element represented by the node it goes to, either logically or lexical...")
 
Line 1: Line 1:
 
A contains edge indicates that the code element represented by the node it comes from contains the code element represented by the node it goes to, either logically or lexically.
 
A contains edge indicates that the code element represented by the node it comes from contains the code element represented by the node it goes to, either logically or lexically.
  
Note that the contains edges do not necessarily form a tree, though they may for some languages. The [[LexicalContains]] edge is guaranteed to form a tree.
+
Note that the contains edges do not necessarily form a tree or forest of trees, though they may for some languages. The [[ContainsLexically]] edges are guaranteed to form a forest of trees.
  
 
==Specification==
 
==Specification==

Revision as of 18:05, 31 March 2014

A contains edge indicates that the code element represented by the node it comes from contains the code element represented by the node it goes to, either logically or lexically.

Note that the contains edges do not necessarily form a tree or forest of trees, though they may for some languages. The ContainsLexically edges are guaranteed to form a forest of trees.

Specification

Metaclass Contains
Description Indicates that the predecessor contains the successor in a sense specified by the specific type of Contains edge.
Direct Subkinds HasControlFlow, HasReturnValue, HasVariable