Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TOP IDE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TDL Open Source
TOP IDE
Commits
f00309bf
Commit
f00309bf
authored
5 years ago
by
Philip Makedonski
Browse files
Options
Downloads
Patches
Plain Diff
+ updated TO scoping
parent
668842b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/org.etsi.mts.tdl.TPLan2/src/org/etsi/mts/tdl/scoping/TPLan2ScopeProvider.java
+6
-6
6 additions, 6 deletions
...an2/src/org/etsi/mts/tdl/scoping/TPLan2ScopeProvider.java
with
6 additions
and
6 deletions
plugins/org.etsi.mts.tdl.TPLan2/src/org/etsi/mts/tdl/scoping/TPLan2ScopeProvider.java
+
6
−
6
View file @
f00309bf
...
@@ -52,13 +52,13 @@ public class TPLan2ScopeProvider extends AbstractDeclarativeScopeProvider {
...
@@ -52,13 +52,13 @@ public class TPLan2ScopeProvider extends AbstractDeclarativeScopeProvider {
}
else
if
(
Parameter
.
class
.
isAssignableFrom
(
reference
.
getEType
().
getInstanceClass
()))
{
}
else
if
(
Parameter
.
class
.
isAssignableFrom
(
reference
.
getEType
().
getInstanceClass
()))
{
if
(
context
instanceof
MemberAssignment
)
{
if
(
context
instanceof
MemberAssignment
)
{
if
(
context
.
eContainer
()
instanceof
StructuredDataInstance
)
{
if
(
context
.
eContainer
()
instanceof
StructuredDataInstance
)
{
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
StructuredDataInstance
)
context
.
eContainer
()).
getDataType
()).
get
Member
());
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
StructuredDataInstance
)
context
.
eContainer
()).
getDataType
()).
all
Member
s
());
return
scope
;
return
scope
;
}
}
}
else
if
(
context
instanceof
ParameterBinding
)
{
}
else
if
(
context
instanceof
ParameterBinding
)
{
if
(
context
.
eContainer
()
instanceof
DataInstanceUse
)
{
if
(
context
.
eContainer
()
instanceof
DataInstanceUse
)
{
if
(((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()
instanceof
StructuredDataInstance
)
{
if
(((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()
instanceof
StructuredDataInstance
)
{
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
StructuredDataInstance
)((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()).
getDataType
()).
get
Member
());
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
StructuredDataInstance
)((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()).
getDataType
()).
all
Member
s
());
return
scope
;
return
scope
;
}
}
}
}
...
@@ -67,26 +67,26 @@ public class TPLan2ScopeProvider extends AbstractDeclarativeScopeProvider {
...
@@ -67,26 +67,26 @@ public class TPLan2ScopeProvider extends AbstractDeclarativeScopeProvider {
EObject
targetContext
=
((
DataUse
)
context
.
eContainer
()).
getReduction
().
get
(((
DataUse
)
context
.
eContainer
()).
getReduction
().
indexOf
(
context
)-
1
);
EObject
targetContext
=
((
DataUse
)
context
.
eContainer
()).
getReduction
().
get
(((
DataUse
)
context
.
eContainer
()).
getReduction
().
indexOf
(
context
)-
1
);
if
(((
MemberReference
)
targetContext
).
getMember
()!=
null
)
{
if
(((
MemberReference
)
targetContext
).
getMember
()!=
null
)
{
if
(((
MemberReference
)
targetContext
).
getMember
().
getDataType
()
instanceof
StructuredDataType
)
{
if
(((
MemberReference
)
targetContext
).
getMember
().
getDataType
()
instanceof
StructuredDataType
)
{
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
MemberReference
)
targetContext
).
getMember
().
getDataType
()).
get
Member
());
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
MemberReference
)
targetContext
).
getMember
().
getDataType
()).
all
Member
s
());
return
scope
;
return
scope
;
}
}
}
}
}
}
if
(
context
.
eContainer
()
instanceof
DataInstanceUse
)
{
if
(
context
.
eContainer
()
instanceof
DataInstanceUse
)
{
if
(((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()
instanceof
StructuredDataInstance
)
{
if
(((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()
instanceof
StructuredDataInstance
)
{
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
StructuredDataInstance
)((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()).
getDataType
()).
get
Member
());
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
StructuredDataInstance
)((
DataInstanceUse
)
context
.
eContainer
()).
getDataInstance
()).
getDataType
()).
all
Member
s
());
return
scope
;
return
scope
;
}
}
}
}
}
else
if
(
context
instanceof
Content
)
{
}
else
if
(
context
instanceof
Content
)
{
if
(
context
.
eContainer
()
instanceof
LiteralValue
)
{
if
(
context
.
eContainer
()
instanceof
LiteralValue
)
{
if
(((
LiteralValue
)
context
.
eContainer
()).
getDataType
()
instanceof
StructuredDataType
)
{
if
(((
LiteralValue
)
context
.
eContainer
()).
getDataType
()
instanceof
StructuredDataType
)
{
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
LiteralValue
)
context
.
eContainer
()).
getDataType
()).
get
Member
());
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
LiteralValue
)
context
.
eContainer
()).
getDataType
()).
all
Member
s
());
return
scope
;
return
scope
;
}
}
}
else
if
(
context
.
eContainer
()
instanceof
Content
)
{
}
else
if
(
context
.
eContainer
()
instanceof
Content
)
{
if
(((
Content
)
context
.
eContainer
()).
getMember
().
getDataType
()
instanceof
StructuredDataType
)
{
if
(((
Content
)
context
.
eContainer
()).
getMember
().
getDataType
()
instanceof
StructuredDataType
)
{
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
Content
)
context
.
eContainer
()).
getMember
().
getDataType
()).
get
Member
());
IScope
scope
=
Scopes
.
scopeFor
(((
StructuredDataType
)((
Content
)
context
.
eContainer
()).
getMember
().
getDataType
()).
all
Member
s
());
return
scope
;
return
scope
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment