ghv / svmprefs Goto Github PK
View Code? Open in Web Editor NEWA code generation tool enable use of UserDefaults as computed properties in a class.
License: Apache License 2.0
A code generation tool enable use of UserDefaults as computed properties in a class.
License: Apache License 2.0
I am seeing a crash, "Fatal error: Index out of range" in updateBeginEndTailComments
when the input looks like this:
import Foundation
import AppKit
/*SVMPREFS
S main | | RALL
V Bool | boolVar1 | boolVar2 | IS |
V Bool | hasBoolVar2 | boolVar2 | |
V Bool | boolVar3 | boolVar3 | |
V Bool | boolVar4 | boolVar4 | |
S copy | | RALL
V Bool | boolVar3 | boolVar3 | |
V Bool | boolVar4 | boolVar4 | |
M main | copy | boolVar3 | boolVar3
M main | copy | boolVar4 | boolVar4
M main | delete | hasBoolVar2
SVMPREFS*/
class MyMigrationTests {
// MARK: BEGIN main
// this will be deleted
// MARK: END main
// MARK: BEGIN copy
// this will be deleted
// MARK: END copy
// MARK: BEGIN migrate
// MARK: END migrate
}
The migrate
code mark has no code to delete and is therefore not having its code mark begin and code mark end indexes updated when removing the existing code between all code marks.
It should adjust these indexes because there are code marks for which there was some code to be deleted above it.
It is also possible that this would not crash if there are more lines after the empty code marks equal or greater in length to the number of lines removed in prior code marks. In this case the code would get inserted in the wrong place.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.