Skip to content

Commit

Permalink
test: internal scope and removed argument wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Jan 17, 2024
1 parent fbd4a4b commit 83d497f
Showing 1 changed file with 20 additions and 49 deletions.
69 changes: 20 additions & 49 deletions test/functionality/r-bridge/lang/ast/parse-access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ describe('Parse value access', withShell(shell => {
content: '[[',
info: {},
location: rangeFrom(1, 2, 1, 3),
namespace: undefined
namespace: InternalScope
},
location: rangeFrom(1, 2, 1, 3),
flavor: 'named',
Expand Down Expand Up @@ -473,7 +473,7 @@ describe('Parse value access', withShell(shell => {
content: '[[',
info: {},
location: rangeFrom(1, 2, 1, 3),
namespace: undefined
namespace: InternalScope
},
flavor: 'named',
arguments: [{
Expand All @@ -484,18 +484,11 @@ describe('Parse value access', withShell(shell => {
content: 'b',
info: {}
}, {
type: RType.Argument,
type: RType.Number,
location: rangeFrom(1, 4, 1, 4),
lexeme: '5',
name: undefined,
info: {},
value: {
type: RType.Number,
location: rangeFrom(1, 4, 1, 4),
lexeme: '5',
content: numVal(5),
info: {}
}
content: numVal(5),
info: {}
}]
})
}
Expand Down Expand Up @@ -559,7 +552,7 @@ describe('Parse value access', withShell(shell => {
content: '[[',
info: {},
location: rangeFrom(1, 2, 1, 3),
namespace: undefined
namespace: InternalScope
},
flavor: 'named',
arguments: [{
Expand All @@ -570,33 +563,18 @@ describe('Parse value access', withShell(shell => {
content: 'b',
info: {}
}, {
type: RType.Argument,
type: RType.Number,
location: rangeFrom(1, 4, 1, 4),
lexeme: '5',
name: undefined,
info: {},
value: {
type: RType.Number,
location: rangeFrom(1, 4, 1, 4),
lexeme: '5',
content: numVal(5),
info: {}
}
}, {
type: RType.Argument,
content: numVal(5),
info: {}
}, {
type: RType.Number,
location: rangeFrom(1, 6, 1, 6),
lexeme: '3',
name: undefined,
info: {},
value: {
type: RType.Number,
location: rangeFrom(1, 6, 1, 6),
lexeme: '3',
content: numVal(3),
info: {}
}
}
]
content: numVal(3),
info: {}
}]
})
}
])
Expand Down Expand Up @@ -647,7 +625,7 @@ describe('Parse value access', withShell(shell => {
content: '[[',
info: {},
location: rangeFrom(1, 2, 1, 3),
namespace: undefined
namespace: InternalScope
},
flavor: 'named',
arguments: [{
Expand All @@ -658,18 +636,11 @@ describe('Parse value access', withShell(shell => {
content: 'b',
info: {}
}, {
type: RType.Argument,
type: RType.Number,
location: rangeFrom(1, 4, 1, 4),
lexeme: '5',
name: undefined,
info: {},
value: {
type: RType.Number,
location: rangeFrom(1, 4, 1, 4),
lexeme: '5',
content: numVal(5),
info: {}
}
content: numVal(5),
info: {}
}, undefined, undefined]
})
}
Expand Down Expand Up @@ -709,7 +680,7 @@ describe('Parse value access', withShell(shell => {
content: '$',
info: {},
location: rangeFrom(1, 2, 1, 2),
namespace: undefined
namespace: InternalScope
},
flavor: 'named',
arguments: [{
Expand Down Expand Up @@ -763,7 +734,7 @@ describe('Parse value access', withShell(shell => {
content: '@',
info: {},
location: rangeFrom(1, 2, 1, 2),
namespace: undefined
namespace: InternalScope
},
flavor: 'named',
arguments: [{
Expand Down

0 comments on commit 83d497f

Please sign in to comment.