dart_code library

Classes

Annotation
Represents an Annotation. See https://dart.dev/guides/language/language-tour#metadata
Block
Represents a block statement See https://dart.dev/guides/language/language-tour#functions
Body
Represent a body of e.g. a DartFunction or Method A body can be a block (e.g. with a return statement) or a functional block (using =>)
CaseChecker
Catch
Class
Represents a Class See https://dart.dev/guides/language/language-tour#classes
Code
a String representing a piece of Dart code
CodeFormatter
Converts a CodeNode to a formatted String, using the constructor parameters. Using the official (dartfmt)https://github.com/dart-lang/dart_style/wiki/Formatting-Rules with the dart_style package Note that this formatter may throw parsing exceptions. You can use the CodeFormatter.unFormatted method when you need a code partial that can not be parsed by the Dart formatter
CodeModel
A (tree) model that represents Dart Code. It contains a list of CodeNodes that is generated by using the constructor parameters, fields and or properties of the implementation of CodeModel CodeNodes can be:
CodeModelWithLibraryUri
A CodeNodeWithLibraryUri wraps an sub class. It adds a LibraryUri alias as defined in the Imports See: https://dart.dev/guides/language/language-tour#libraries-and-visibility
CodeNode
a tree model that represents DartCode
Comment
Represents a Comment. See: https://dart.dev/guides/language/language-tour#comments
Constructor
Represents a Class Constructor See https://dart.dev/guides/language/language-tour#constructors
ConstructorCall
Represents a ConstructorCall See https://dart.dev/guides/language/language-tour#constructors
ConstructorParameter
Represents a ConstructorParameter definition. A ConstructorParameter definition is comparable to a Parameter definition, but it can also have a default value and may refer to a Field
ConstructorParameters
ConstructorParameters are comparable to Parameters only for ConstructorParameters
Context
DartFunction
Represents a DartFunction See: https://dart.dev/guides/language/language-tour#functions
DocComment
Represents a DocComment. See: https://dart.dev/guides/language/language-tour#documentation-comments
EndOfStatement
;
Expression
An Expression is a syntactic entity in the Dart programming language that may be evaluated to determine its value e.g.: 1 or or 1.1 or 1+2 or 'hello' or 'hello' + ' world' or user.name See: https://dart.dev/guides/language/language-tour#operators
Field
A Field is a VariableDefinition in a Class. See https://dart.dev/guides/language/language-tour#using-class-members
FieldInitializer
A FieldInitializer is a VariableDefinition with a value assignment within a Class. See https://dart.dev/guides/language/language-tour#using-class-members
FunctionCall
Identifier
Identifiers are names of Classes, Fields, Methods, DartFunctions etc. See https://dart.dev/guides/language/language-tour#important-concepts
IdentifierStartingWithLowerCase
IdentifierStartingWithUpperCase
Initializers
Represents a Constructor Initializers See: https://dart.dev/guides/language/language-tour#instance-variables
KeyWord
A collection of reserved Dart (key)words Using a dollar prefix to prevent compiler issues (field names being keywords) See https://dart.dev/guides/language/language-tour#keywords
Library
Represents a Library containing optional DocComments, Annotations, DartFunctions and Classes See: https://www.tutorialspoint.com/dart_programming/dart_programming_libraries.htm#:~:text=A%20library%20in%20a%20programming,typedefs%2C%20properties%2C%20and%20exceptions.
Method
Represents a Class Method or PropertyAccessor See: https://dart.dev/guides/language/language-tour#methods
NewLine
adds a carriage return (CR) character. This character is used as a new line character in most other non-Unix operating systems Note that CodeFormatter may
NoneRepeatingCode
Adds code only when it is not repeating itself (ignoring spaces)
Parameter
Represents the definition of a Parameter in a a DartFunction or Method. A Parameter definition can be:
Parameters
Parameters can have any number of required positional Parameter definitions. These can be followed either by named Parameter definitions or by optional positional Parameter definitions (but not both). Parameter names must be unique.
ParameterValue
A ParameterValue is used when calling a DartFunction, Constructor or Method
ParameterValues
ParameterValues is a list of ParameterValues
SeparatedValues
Space
adds a space. Note that CodeFormatter may add additional spaces or remove unneeded spaces
Statement
A Statement is a syntactic unit of an imperative programming language that expresses some action to be carried out. See: https://dart.dev/guides/language/language-tour#control-flow-statements
Statements
Type
Refers to Type For the Dart Type system, see: https://dart.dev/guides/language/type-system For the Dart build in types, see: https://dart.dev/guides/language/language-tour#built-in-types
VariableDefinition
A Variable is used to store the value and refer the memory location in computer memory. When we create a variable (with a VariableDefinition also known as variable declaration), the Dart compiler allocates some space in memory. The size of the memory block of memory is depended upon the type of variable.

Properties

endsWithWhiteSpace RegExp
final