Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
EmbeddedMontiArc
Commits
31fa64fe
Commit
31fa64fe
authored
Aug 29, 2020
by
Malte Heithoff
Browse files
Take only streams that matches file structure
parent
52898bf1
Pipeline
#325190
passed with stage
in 2 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/embeddedmontiarc/embeddedmontiarc/StreamScanner.java
View file @
31fa64fe
...
...
@@ -67,7 +67,8 @@ public final class StreamScanner {
Optional
<
ASTStreamUnitsCompilationUnit
>
ast
=
new
StreamUnitsParser
().
parse
(
f
.
getAbsolutePath
());
if
(
ast
.
isPresent
())
{
String
packageName
=
Joiners
.
DOT
.
join
(
ast
.
get
().
getPackageList
());
if
(
getStreamModelName
(
relativePath
.
getParent
()).
equals
(
packageName
)){
String
modelName
=
f
.
getName
().
substring
(
0
,
f
.
getName
().
indexOf
(
"."
));
if
(
streamModelName
.
equals
(
packageName
+
"."
+
modelName
)){
ComponentStreamUnitsSymbol
s
=
scanner
.
symTab
.<
ComponentStreamUnitsSymbol
>
resolve
(
streamModelName
,
ComponentStreamUnitsSymbol
.
KIND
).
orElse
(
null
);
if
(
s
!=
null
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment