mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Add some docs about the Node ID fields
This commit is contained in:
1 parent
751d409e04
commit
5bf8c5d6ae
1 file changed
+23
@@ -131,6 +131,29 @@ type Node struct {
|
|||||||
filename string
|
filename string
|
||||||
line uint32
|
line uint32
|
||||||
|
|
||||||
|
// The idX fields' meaning depend on what kind of node it is.
|
||||||
|
//
|
||||||
|
// kind id0 id1 kind
|
||||||
|
// ----------------------------------------------
|
||||||
|
// Arg . name Arg
|
||||||
|
// Assert keyword reason Assert
|
||||||
|
// Assign operator . Assign
|
||||||
|
// Const . name Const
|
||||||
|
// Expr operator literal/id Expr
|
||||||
|
// Field . name Field
|
||||||
|
// File . . File
|
||||||
|
// Func receiver name Func
|
||||||
|
// If . . If
|
||||||
|
// Iterate . label Iterate
|
||||||
|
// Jump keyword label Jump
|
||||||
|
// PackageID . literal PackageID
|
||||||
|
// Ret keyword . Ret
|
||||||
|
// Status keyword . Status
|
||||||
|
// Struct . name Struct
|
||||||
|
// TypeExpr decorator name TypeExpr
|
||||||
|
// Use . literal Use
|
||||||
|
// Var operator name Var
|
||||||
|
// While . label While
|
||||||
id0 t.ID
|
id0 t.ID
|
||||||
id1 t.ID
|
id1 t.ID
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user