File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/statistics/features/supported/assignments Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ COPY --from=builder /app/dist /app/dist
3434
3535RUN rm -rf /app/**/tsconfig.tsbuildinfo
3636
37- ENTRYPOINT ["node" , "/app/dist/flowr.js" ]
37+ ENTRYPOINT ["node" , "/app/dist/cli/ flowr.js" ]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { postProcess } from './post-process'
55import type { RNodeWithParent } from '../../../../r-bridge/lang-4.x/ast/model/processing/decorate'
66import { visitAst } from '../../../../r-bridge/lang-4.x/ast/model/processing/visitor'
77import { RType } from '../../../../r-bridge/lang-4.x/ast/model/type'
8- import { AssignmentOperators } from '../../../../../test/functionality/_helper/provider '
8+ import { OperatorDatabase , Operators } from '../../../../r-bridge/lang-4.x/ast/model/operators '
99
1010
1111const initialAssignmentInfo = {
@@ -19,13 +19,14 @@ const initialAssignmentInfo = {
1919
2020export type AssignmentInfo = Writable < typeof initialAssignmentInfo >
2121
22+ export const AssignmentOperators : ReadonlySet < string > = new Set ( Operators . filter ( op => OperatorDatabase [ op ] . usedAs === 'assignment' ) )
2223
2324function visitAssignment ( info : AssignmentInfo , input : FeatureProcessorInput ) : void {
2425 const assignmentStack : RNodeWithParent [ ] = [ ]
2526
2627 visitAst ( input . normalizedRAst . ast ,
2728 node => {
28- if ( node . type !== RType . BinaryOp || ! AssignmentOperators . includes ( node . operator ) ) {
29+ if ( node . type !== RType . BinaryOp || ! AssignmentOperators . has ( node . operator ) ) {
2930 return
3031 }
3132
You can’t perform that action at this time.
0 commit comments