Skip to main content

Module decl_check

Module decl_check 

Source
Expand description

Provides validators for names of declarations.

This includes the following items:

  • variable bindings (e.g. let x = foo();)
  • struct fields (e.g. struct Foo { field: u8 })
  • enum variants (e.g. enum Foo { Variant { field: u8 } })
  • function/method arguments (e.g. fn foo(arg: u8))
  • constants (e.g. const FOO: u8 = 10;)
  • static items (e.g. static FOO: u8 = 10;)
  • match arm bindings (e.g. foo @ Some(_))
  • modules (e.g. mod foo { ... } or mod foo;)

Modulesยง

case_conv ๐Ÿ”’
Functions for string case manipulation, such as detecting the identifier case, and converting it into appropriate form.

Structsยง

DeclValidator ๐Ÿ”’
IncorrectCase
Replacement ๐Ÿ”’

Enumsยง

CaseType
IdentType

Functionsยง

incorrect_case