Skip to content

Instantly share code, notes, and snippets.

@tjakopan
Created November 17, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjakopan/7a789f1c34c78de4cdf7464a5b00fa49 to your computer and use it in GitHub Desktop.
Save tjakopan/7a789f1c34c78de4cdf7464a5b00fa49 to your computer and use it in GitHub Desktop.
simplify-highlight-strategy
this.highlightStrategy = when (state) {
isOnlyTopLevelReturns -> JavaScriptTopLevelHighlightStrategy
isSKipSimpleGetters -> JavaScriptSimpleGetterHighlightStrategy(highlightStrategy)
else -> JavaScriptAlwaysHighlightStrategy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment