Simple Type Definition Snippets

A simple type definition snippet, unsurprisingly, defines one or more Pascal types. Only simple types are supported. Classes, objects and records that contain methods are not: use class & advanced record snippet kinds for those. If you're not sure, the only types supported are those that can be completely defined in the interface section of a unit.

Each type definition snippet must begin with the type keyword as the first non-space text in the source code. Comments may not preceed it. The type keyword is followed by at least one space or newline and then one or more type definitions.

Here's an example of a valid type definition:

type
  TMyType = 1..20;
  TMySecondType = array[TMyType] of Integer;

Simple type definitions may refer to other simple type definitions, class & advanced record type definitions or constants, providing they are defined in Delphi units or elsewhere in the database. The snippet's units and dependencies references should indicate where to find the other types and constants. Type definitions must not reference routine, unit or freeform snippets.