Skip to content

Update example output to match current Joern version #43

Description

@johannescoetzee

Motivating example from https://docs.joern.io/quickstart:

Quickstart guide

joern> cpg.call.argument.code("stderr").toList
res4: List[Call] = List(
  Call(
    id -> 24L,
    code -> "fprintf(stderr, \"It depends!\\n\")",
    name -> "fprintf",
    order -> 1,
    methodInstFullName -> None,
    methodFullName -> "fprintf",
    argumentIndex -> 1,
    dispatchType -> "STATIC_DISPATCH",
    signature -> "TODO assignment signature",
    typeFullName -> "ANY",
    dynamicTypeHintFullName -> List(),
    lineNumber -> Some(7),
    columnNumber -> Some(4),
    resolved -> None,
    depthFirstOrder -> Some(-8),
    internalFlags -> Some(4)
  )
)

Fuzzy cpg

joern> cpg.call.argument.code("stderr").toList 
res1: List[Expression] = List(
  Identifier(
    id -> 1000118L,
    argumentIndex -> 1,
    argumentName -> None,
    code -> "stderr",
    columnNumber -> Some(value = 12),
    lineNumber -> Some(value = 7),
    name -> "stderr",
    order -> 1,
    typeFullName -> "ANY"
  )
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions