io.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ace.define("ace/snippets/io",["require","exports","module"], function(require, exports, module) {
  2. "use strict";
  3. exports.snippets = [
  4. {
  5. "content": "assertEquals(${1:expected}, ${2:expr})",
  6. "name": "assertEquals",
  7. "scope": "io",
  8. "tabTrigger": "ae"
  9. },
  10. {
  11. "content": "${1:${2:newValue} := ${3:Object} }clone do(\n\t$0\n)",
  12. "name": "clone do",
  13. "scope": "io",
  14. "tabTrigger": "cdo"
  15. },
  16. {
  17. "content": "docSlot(\"${1:slotName}\", \"${2:documentation}\")",
  18. "name": "docSlot",
  19. "scope": "io",
  20. "tabTrigger": "ds"
  21. },
  22. {
  23. "content": "(${1:header,}\n\t${2:body}\n)$0",
  24. "keyEquivalent": "@(",
  25. "name": "Indented Bracketed Line",
  26. "scope": "io",
  27. "tabTrigger": "("
  28. },
  29. {
  30. "content": "\n\t$0\n",
  31. "keyEquivalent": "\r",
  32. "name": "Special: Return Inside Empty Parenthesis",
  33. "scope": "io meta.empty-parenthesis.io, io meta.comma-parenthesis.io"
  34. },
  35. {
  36. "content": "${1:methodName} := method(${2:args,}\n\t$0\n)",
  37. "name": "method",
  38. "scope": "io",
  39. "tabTrigger": "m"
  40. },
  41. {
  42. "content": "newSlot(\"${1:slotName}\", ${2:defaultValue}, \"${3:docString}\")$0",
  43. "name": "newSlot",
  44. "scope": "io",
  45. "tabTrigger": "ns"
  46. },
  47. {
  48. "content": "${1:name} := Object clone do(\n\t$0\n)",
  49. "name": "Object clone do",
  50. "scope": "io",
  51. "tabTrigger": "ocdo"
  52. },
  53. {
  54. "content": "test${1:SomeFeature} := method(\n\t$0\n)",
  55. "name": "testMethod",
  56. "scope": "io",
  57. "tabTrigger": "ts"
  58. },
  59. {
  60. "content": "${1:Something}Test := ${2:UnitTest} clone do(\n\t$0\n)",
  61. "name": "UnitTest",
  62. "scope": "io",
  63. "tabTrigger": "ut"
  64. }
  65. ];
  66. exports.scope = "io";
  67. });