Skip to content

Commit

Permalink
revert accidental replaces
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Oct 29, 2024
1 parent b979f2d commit fece821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pxtcompiler/emitter/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace ts.pxtc {
"Math.min": { n: "min", t: ts.SyntaxKind.NumberKeyword, snippet: "min(0, 0)" },
"Math.max": { n: "max", t: ts.SyntaxKind.NumberKeyword, snippet: "max(0, 0)" },
"Math.abs": { n: "abs", t: ts.SyntaxKind.NumberKeyword, snippet: "abs(0)" },
"pxt.log": { n: "print", t: ts.SyntaxKind.VoidKeyword, snippet: 'print(":)")' },
"console.log": { n: "print", t: ts.SyntaxKind.VoidKeyword, snippet: 'print(":)")' },
".length": { n: "len", t: ts.SyntaxKind.NumberKeyword },
".toLowerCase()": { n: "string.lower", t: ts.SyntaxKind.StringKeyword },
".toUpperCase()": { n: "string.upper", t: ts.SyntaxKind.StringKeyword },
Expand Down
2 changes: 1 addition & 1 deletion pxtpy/pydecompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ namespace pxt.py {
}
}

// TODO inspect type info to rewrite things like pxt.log, Math.max, etc.
// TODO inspect type info to rewrite things like console.log, Math.max, etc.
let [fnExp, fnSup] = emitExp(s.expression)
let fn = expToStr(fnExp);

Expand Down

0 comments on commit fece821

Please sign in to comment.