public isComplexityKeyword(word as String) as Boolean
Checks in $O(1)$ whether word is a cyclomatic complexity decision token.
| Parameter | Description |
|---|---|
word | Token text to test. |
true if word increases cyclomatic complexity.
import klyn.code
p = LanguageProfile("klyn", "Klyn").withComplexityKeywords(["if", "while"])
assert p.isComplexityKeyword("if")