editor placeholder in source file

11773 просмотра

2 ответа

14 Репутация автора

I am new to swift and I was following an open source tutorial to learn Swift, however one error keeps cropping up — «Editor placeholder in source code» This is the code:

Ответы (2)

9 плюса

362549 Репутация автора

This code is wrong:

When you are calling a method, you supply an argument value: you do not supply a type describing the required parameters. You want to say this:

An editor placeholder is a solid rounded rectangle with text in it, inserted through code completion. It might look like this:

You need to look for that sort of thing in your code and replace it with actual text (or delete it).

Автор: matt Размещён: 20.05.2016 05:46

1 плюс

105 Репутация автора

For example, if you left the blue place holder code in the file when you ran your program, it will give you this error. Try to delete it, then go to Product->Clean and Product->Build.

Здравствуйте, я реализую структуру данных графа. Когда я пытаюсь создать приложение, я получаю сообщение об ошибке «Заполнитель редактора в исходном файле»

Полная реализация графа была вытащена из WayneBishop GitHub здесь https://github.com/waynewbishop/SwiftStructures

Я изменил класс Node вокруг:

Эта ошибка происходит 5 раз в течение всего кода, который я создал до сих пор. Также этот вопрос задан, но не ответил.

Я думаю, что ошибка может быть связана с моими изменениями в init() в классе Node . До моих изменений это было просто init() . Если это так, как добавить объекты в класс? Простите меня, если я не прав в своей терминологии программирования, поскольку я относительно новичок в ООП.

Hello I am implementing a graph data structure. When I try to build the application the I get the error «Editor placeholder in source file»

The full graph implementation was pulled from WayneBishop’s GitHub from here https://github.com/waynewbishop/SwiftStructures

I changed the Node Class around to:

This Error happens 5 times throughout the code that I have built so far. Also this question has been asked, but not answered.

I think the error may be due to my changes to the init() in the Node class. Prior to my changes it was just init() . If it is, how can I add objects to the class? Pardon me if I am not correct in my programming terminology, as I am relatively new to OOP.

Источник: computermaker.info

Понравилась статья? Поделиться с друзьями:
Ок! Компьютер
Добавить комментарий