Skip to content

Commit 6b33b64

Browse files
author
mattcce
committed
revert Object class declaration
1 parent 5885b51 commit 6b33b64

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

src/ec-evaluator/nodeCreator.ts

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -138,41 +138,5 @@ export const objClassDeclNode = (): ClassDeclaration => ({
138138
kind: 'NormalClassDeclaration',
139139
classModifier: [],
140140
typeIdentifier: OBJECT_CLASS,
141-
classBody: [
142-
{
143-
kind: 'FieldDeclaration',
144-
fieldModifier: ['private'],
145-
fieldType: 'int',
146-
variableDeclaratorList: [
147-
{
148-
kind: 'VariableDeclarator',
149-
variableDeclaratorId: 'hash',
150-
variableInitializer: {
151-
kind: 'Literal',
152-
literalType: {
153-
kind: 'DecimalIntegerLiteral',
154-
value: String(Math.floor(Math.random() * Math.pow(2, 32)))
155-
}
156-
}
157-
}
158-
]
159-
},
160-
{
161-
kind: 'MethodDeclaration',
162-
methodModifier: ['public'],
163-
methodHeader: { result: 'int', identifier: 'hashCode', formalParameterList: [] },
164-
methodBody: {
165-
kind: 'Block',
166-
blockStatements: [
167-
{
168-
kind: 'ReturnStatement',
169-
exp: {
170-
kind: 'ExpressionName',
171-
name: 'this.hash'
172-
}
173-
}
174-
]
175-
}
176-
}
177-
]
141+
classBody: []
178142
})

0 commit comments

Comments
 (0)