Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs444
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Xun Yang
cs444
Merge requests
!30
New new string
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New new string
new-new-string
into
master
Overview
0
Commits
37
Pipelines
0
Changes
3
Merged
Xun Yang
requested to merge
new-new-string
into
master
4 years ago
Overview
0
Commits
37
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Viewing commit
7f91acd0
Prev
Next
Show latest version
3 files
+
19
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
7f91acd0
fix segfault on forward ref
· 7f91acd0
Xun Yang
authored
4 years ago
LineNodes.py
+
2
−
1
Options
@@ -111,7 +111,7 @@ class BlockNode(ASTNode):
# 1. variableDcl type ID
# 2. variableDcl type ID ASSIGN variableInit
class
VarDclNode
(
ASTNode
):
def
__init__
(
self
,
parseTree
,
typeName
,
checkAssign
=
False
):
def
__init__
(
self
,
parseTree
,
typeName
,
checkAssign
=
False
,
isField
=
None
):
self
.
parseTree
=
parseTree
self
.
dclType
=
None
self
.
name
=
None
# variable name
@@ -119,6 +119,7 @@ class VarDclNode(ASTNode):
self
.
env
=
None
self
.
children
=
[]
self
.
typeName
=
typeName
self
.
isField
=
isField
self
.
dclType
=
TypeNode
(
parseTree
.
children
[
0
],
typeName
)
self
.
name
=
parseTree
.
children
[
1
].
lex
Loading