Skip to content

Commit

Permalink
Merge commit 'eedfe4a1'
Browse files Browse the repository at this point in the history
Some commits in this branch are references by internal submodules. We
merge this commit to make sure that the submodule references are not
garbage collected and also reachable by master.
  • Loading branch information
5nord committed Nov 13, 2024
2 parents 0f5040e + eedfe4a commit 9d9486b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ttcn3/syntax/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ package syntax

import (
"bytes"
"context"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
trc "runtime/trace"
"strconv"
"strings"

Expand Down Expand Up @@ -77,6 +79,9 @@ func NewParser(src []byte) *parser {
// ErrorList which is sorted by file position.
func Parse(src []byte, opts ...ParserOption) (root *Root, names map[string]bool, uses map[string]bool) {

region := trc.StartRegion(context.Background(), "syntax.Parse")
defer region.End()

p := NewParser(src)
for _, opt := range opts {
if err := opt(p); err != nil {
Expand Down

0 comments on commit 9d9486b

Please sign in to comment.