fieldReference

Coverity Documentation

Version
latest

Matches expressions that reference fields.

This pattern only matches nodes of type expression.

Properties

fieldReference produces a record that contains the following property:

Name Type Description
fieldSymbol symbol The field symbol

Inherits properties from:

Example

The following CodeXM pattern matches when a field example is referenced:


CXM code follows
    pattern referringToExample {
        fieldReference {
            .fieldSymbol == symbol { .simpleName == "example" }
        }
    };