Lines Matching refs:pegRule
134 switch node.pegRule {
153 panic(fmt.Sprintf("unknown top-level statement type %q", rul3s[node.pegRule]))
279 if term.pegRule != ruleLocalSymbol {
313 switch label.pegRule {
324 return nil, fmt.Errorf("unknown label type %q", rul3s[label.pegRule])
526 for symRef != nil && symRef.pegRule == ruleOffset {
538 if memRef.pegRule != ruleSymbolRef {
550 if symRef.pegRule == ruleLocalSymbol {
573 panic(fmt.Sprintf("unexpected token in SymbolRef: %q", rul3s[symRef.pegRule]))
595 if arg.pegRule == ruleIndirectionIndicator {
600 switch arg.pegRule {
766 panic(fmt.Sprintf("unknown instruction argument type %q", rul3s[arg.pegRule]))
893 return node != nil && node.pegRule == ruleBaseIndexScale && d.contents(node) == "(%rip)"
911 if arg.pegRule == ruleIndirectionIndicator {
916 switch arg.pegRule {
1065 panic(fmt.Sprintf("unknown instruction argument type %q", rul3s[arg.pegRule]))
1091 switch node.pegRule {
1108 if label.pegRule != ruleLocalSymbol {
1124 …return nil, fmt.Errorf("unknown BSS statement type %q in %q", rul3s[node.pegRule], d.contents(stat…
1399 func forEachPath(node *node32, cb func(*node32), rules ...pegRule) { argument
1413 if node.pegRule != rule {
1425 func skipNodes(node *node32, ruleToSkip pegRule) *node32 { argument
1426 for ; node != nil && node.pegRule == ruleToSkip; node = node.next {
1435 func assertNodeType(node *node32, expected pegRule) { argument
1436 if rule := node.pegRule; rule != expected {
1511 if node == nil || node.pegRule != ruleInstruction {