1.2. Source Unit#
Syntax#
SourceUnit = (* members: *) SourceUnitMembers;
SourceUnitMembers = (* item: *) SourceUnitMember*;
SourceUnitMember = (* variant: *) PragmaDirective
| (* variant: *) ImportDirective
| (* variant: *) ContractDefinition
| (* variant: *) InterfaceDefinition
| (* variant: *) LibraryDefinition
| (* variant: *) StructDefinition (* Introduced in 0.6.0 *)
| (* variant: *) EnumDefinition (* Introduced in 0.6.0 *)
| (* variant: *) FunctionDefinition (* Introduced in 0.7.1 *)
| (* variant: *) ErrorDefinition (* Introduced in 0.8.4 *)
| (* variant: *) UserDefinedValueTypeDefinition (* Introduced in 0.8.8 *)
| (* variant: *) UsingDirective (* Introduced in 0.8.13 *)
| (* variant: *) EventDefinition (* Introduced in 0.8.22 *)
| (* variant: *) ConstantDefinition; (* Introduced in 0.7.4 *)
Documentation#
Note
This section is under construction. You are more than welcome to contribute suggestions to our GitHub repository.