Skip to content

Commit

Permalink
Attempt to resolve freakin references
Browse files Browse the repository at this point in the history
  • Loading branch information
0x19 committed Apr 1, 2024
1 parent 6af12c0 commit 2694d88
Show file tree
Hide file tree
Showing 205 changed files with 310,067 additions and 310,041 deletions.
1 change: 0 additions & 1 deletion ast/reference.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ func (r *Resolver) Resolve() []error {
uNode := r.UnprocessedNodes[nodeId]
uNode.ErrUpdateRef = true
r.UnprocessedNodes[nodeId] = uNode

}
} else {
uNode := r.UnprocessedNodes[nodeId]
Expand Down
4 changes: 0 additions & 4 deletions ast/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ func (t *Tree) UpdateNodeReferenceById(nodeId int64, nodeRefId int64, typeRef *T
return false
}

/* if nodeId == 4186 || nodeRefId == 4186 {
panic("WHY?")
} */

for _, child := range t.astRoot.GetGlobalNodes() {
if n := t.byRecursiveReferenceUpdate(child, nodeId, nodeRefId, typeRef); n {
return n
Expand Down
5 changes: 4 additions & 1 deletion ast/type_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,12 @@ func (t *TypeName) parseMappingTypeName(unit *SourceUnit[Node[ast_pb.SourceUnit]
func (t *TypeName) generateTypeName(sourceUnit *SourceUnit[Node[ast_pb.SourceUnit]], ctx any, parentNode *TypeName, typeNameNode *TypeName) *TypeName {
typeName := &TypeName{
ASTBuilder: t.ASTBuilder,
Id: t.GetNextID(),
Id: t.GetId(),
NodeType: ast_pb.NodeType_ELEMENTARY_TYPE_NAME,
}

t.NodeType = ast_pb.NodeType_ELEMENTARY_TYPE_NAME

switch specificCtx := ctx.(type) {
case parser.IMappingKeyTypeContext:
typeName.Name = specificCtx.GetText()
Expand Down Expand Up @@ -856,6 +858,7 @@ func (t *TypeName) ParseElementaryType(unit *SourceUnit[Node[ast_pb.SourceUnit]]
TypeIdentifier: normalizedTypeIdentifier,
TypeString: normalizedTypeName,
}

}

// PathNode represents a path node within a TypeName.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"address": "0x7da04980bb21239e0ed5577bdbc565fdd775e393",
"type": "keystore",
"private_key": "",
"public_key": "",
"account": {
"address": "0x7da04980bb21239e0ed5577bdbc565fdd775e393",
"url": "keystore:///home/nevio/dev/unpack/solgo-orig/data/faucets/ethereum/UTC--2024-04-01T13-41-23.944195606Z--7da04980bb21239e0ed5577bdbc565fdd775e393"
},
"password": "c2ltdWxhdG9y",
"network": "ethereum",
"tags": [
"test"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"address": "0xf607b8599bb76adc171984f09038cc2c1bfc2933",
"type": "keystore",
"private_key": "",
"public_key": "",
"account": {
"address": "0xf607b8599bb76adc171984f09038cc2c1bfc2933",
"url": "keystore:///home/nevio/dev/unpack/solgo-orig/data/faucets/ethereum/UTC--2024-04-01T13-00-17.796549185Z--f607b8599bb76adc171984f09038cc2c1bfc2933"
},
"password": "c2ltdWxhdG9y",
"network": "ethereum",
"tags": [
"test"
]
}
2 changes: 1 addition & 1 deletion data/solc/releases/releases.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2694d88

Please sign in to comment.