-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram.puml
160 lines (132 loc) Β· 4.99 KB
/
diagram.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
@startuml
set namespaceSeparator ::
class "todo_as_issue::parser::todo.dart::Todo" {
+int id
+bool wasPosted
+String title
+String toString()
}
class "todo_as_issue::parser::error_reporter.dart::ErrorReporter" {
+void reportError()
}
class "todo_as_issue::parser::parser.dart::TokenIterator" {
+List<Token> tokens
+int cursor
+dynamic current
+bool moveNext()
+bool hasNext()
}
"dart::core::Iterator" <|-- "todo_as_issue::parser::parser.dart::TokenIterator"
class "todo_as_issue::parser::parser.dart::Parser" {
+List<Token> tokens
+ErrorReporter errorReporter
+List<Todo> parse()
}
"todo_as_issue::parser::parser.dart::Parser" o-- "todo_as_issue::parser::error_reporter.dart::ErrorReporter"
class "todo_as_issue::todo_as_issue.dart::TodoAsIssue" {
+Lexer lexer
+Parser parser
+API api
+Configuration configuration
+String todoFile
+IOpenSourcePlatform openSourcePlatform
+void run()
}
"todo_as_issue::todo_as_issue.dart::TodoAsIssue" o-- "todo_as_issue::lexer::lexer.dart::Lexer"
"todo_as_issue::todo_as_issue.dart::TodoAsIssue" o-- "todo_as_issue::parser::parser.dart::Parser"
"todo_as_issue::todo_as_issue.dart::TodoAsIssue" o-- "todo_as_issue::api::api.dart::API"
"todo_as_issue::todo_as_issue.dart::TodoAsIssue" o-- "todo_as_issue::utils::configuration.dart::Configuration"
"todo_as_issue::todo_as_issue.dart::TodoAsIssue" o-- "todo_as_issue::api::opensource_platform.dart::IOpenSourcePlatform"
abstract class "todo_as_issue::core::http_client::http_client_interface.dart::IHttpClient" {
+Future<HttpResponse> get()
+Future<HttpResponse> post()
+Future<HttpResponse> put()
}
class "todo_as_issue::core::http_client::http_client_interface.dart::HttpResponse" {
+Map<String, dynamic> body
+int statusCode
}
class "todo_as_issue::core::http_client::http_client.dart::HttpClient" {
+Client client
+String baseUrl
+Future<HttpResponse> get()
+Future<HttpResponse> post()
+Future<HttpResponse> put()
}
"todo_as_issue::core::http_client::http_client.dart::HttpClient" o-- "http::src::client.dart::Client"
"todo_as_issue::core::http_client::http_client_interface.dart::IHttpClient" <|-- "todo_as_issue::core::http_client::http_client.dart::HttpClient"
class "todo_as_issue::utils::configuration.dart::Configuration" {
+String owner
+String repoNameGitHub
+String repoIdGitlab
+String githubToken
+String gitlabToken
+String platform
+Map<String, dynamic> toJson()
}
class "todo_as_issue::utils::reader.dart::Reader" {
{static} +Future<String> getTodoFile()
{static} +Future<Map<String, dynamic>> getConfigFile()
}
class "todo_as_issue::api::gitlab.dart::GitLab" {
{static} -GitLab _singleton
-HttpClient _httpClient
+Map<String, String> getHeaders()
+Future<HttpResponse> createIssue()
}
"todo_as_issue::api::gitlab.dart::GitLab" o-- "todo_as_issue::api::gitlab.dart::GitLab"
"todo_as_issue::api::gitlab.dart::GitLab" o-- "todo_as_issue::core::http_client::http_client.dart::HttpClient"
"todo_as_issue::api::opensource_platform.dart::IOpenSourcePlatform" <|-- "todo_as_issue::api::gitlab.dart::GitLab"
class "todo_as_issue::api::api.dart::API" {
-IOpenSourcePlatform _openSourcePlatform
+IOpenSourcePlatform openSourcePlatform
+void createIssues()
}
"todo_as_issue::api::api.dart::API" o-- "todo_as_issue::api::opensource_platform.dart::IOpenSourcePlatform"
class "todo_as_issue::api::github.dart::GitHub" {
{static} -GitHub _singleton
-HttpClient _httpClient
+Map<String, String> getHeaders()
+Future<HttpResponse> createIssue()
}
"todo_as_issue::api::github.dart::GitHub" o-- "todo_as_issue::api::github.dart::GitHub"
"todo_as_issue::api::github.dart::GitHub" o-- "todo_as_issue::core::http_client::http_client.dart::HttpClient"
"todo_as_issue::api::opensource_platform.dart::IOpenSourcePlatform" <|-- "todo_as_issue::api::github.dart::GitHub"
abstract class "todo_as_issue::api::opensource_platform.dart::IOpenSourcePlatform" {
+Future<HttpResponse> createIssue()
}
class "todo_as_issue::lexer::tokens.dart::Token" {
+TokenKind kind
+String lexeme
+String toString()
}
"todo_as_issue::lexer::tokens.dart::Token" o-- "todo_as_issue::lexer::tokens.dart::TokenKind"
class "todo_as_issue::lexer::tokens.dart::TokenKind" {
+int index
{static} +List<TokenKind> values
{static} +TokenKind openingSquareBracket
{static} +TokenKind closingSquareBracket
{static} +TokenKind hashSymbol
{static} +TokenKind openingParenthesis
{static} +TokenKind closingParenthesis
{static} +TokenKind colon
{static} +TokenKind quote
{static} +TokenKind issueName
{static} +TokenKind tilde
{static} +TokenKind number
{static} +TokenKind semicolon
}
"todo_as_issue::lexer::tokens.dart::TokenKind" o-- "todo_as_issue::lexer::tokens.dart::TokenKind"
"dart::core::Enum" <|-- "todo_as_issue::lexer::tokens.dart::TokenKind"
class "todo_as_issue::lexer::lexer.dart::Lexer" {
+String fileContent
+int cursor
+bool isEndOfFile
+String currentCharacter
+List<Token> tokenize()
+Token consumeToken()
+bool isDigit()
+void skipWhitespaces()
+void advanceCursor()
}
@enduml