DartParser class

Constructors

DartParser(SearchEngine engine)

Properties

backslash Searcher
getter/setter pair
engine SearchEngine
final
hashCode int
The hash code for this object.
no setterinherited
multiComments Map<String, String>
final
multiStrings Map<String, String>
final
noMetaChar Searcher
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findEndOfMultilineItem(Searcher endSearcher, Position end) String?
Searches the end of a multi line comment or string. endSearcher defines the pattern of the searched item. end: OUT stores the end of the item. Returns null on success or the error message.
findEndOfString(StringSearcher end, bool hasPrefixR, Position endPosition) String?
Finds the end of a single line string constant. end specifies the string end (" or '). If hasPrefixR the string constant is a "raw string" that means meta chars take not place there. endPosition: OUT the position behind the end delimiter. Returns null on success, otherwise the error message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceStringsAndComments() → void
Replaces strings and comments by identifiers. The content of the strings and comments will be stored in two maps, so that can be restored.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

prefixComment → const String
prefixString → const String