Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/docs/analyzers/LinterCop/LC0098.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ Optional groups can contain any combination of literals and token placeholders.

#### Conditional self-reference text

Any source-object-type placeholder accepts a non-empty literal after `|`. The text after `|` is emitted verbatim only when the subscribed object is the application object containing the subscriber or the target of its extension; it otherwise resolves to an empty string. The placeholder style does not transform the text after `|`. This syntax applies only to the five `EventSourceType` placeholder variants.
Any source-object-type placeholder accepts a non-empty literal after `|`. The text after `|` is emitted verbatim when the subscribed object contains the subscriber; otherwise the object type is rendered in the placeholder's usual style. The placeholder style does not transform the text after `|`. This syntax applies only to the five `EventSourceType` placeholder variants.

Use it inside an optional group when the text needs surrounding punctuation or spacing:
For example, with this template:

```text
[{Event Source Type|This} ]{Event Name}
({EventSourceType|This} {EventSource}) {EventName}
```

A subscriber in the same object as its publisher renders `"This OnGetSelf"`. A subscriber to another object (Codeunit)renders `Codeunit OnGetOther`, because the optional group is empty. The suffix is user-defined: `This`, `Self`, or any other non-empty text is valid.
A subscriber in codeunit `"Self Publisher"` subscribing to its own `OnGetSelf` renders `"(This SelfPublisher) OnGetSelf"`; a subscriber in another codeunit renders `"(Codeunit SelfPublisher) OnGetSelf"`. `{EventSource}` is independent and still emits the publisher name. To keep the spaces in the object name, use the raw `{Event Source}` placeholder instead. The replacement text is user-defined: `This`, `Self`, or any other non-empty text is valid.

#### Word splitting (non-raw styles only)

Expand Down
Loading